summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-07 11:28:38 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-07 11:28:38 -0400
commitb255bf609d10946dd42ad346d67b28c56f04a471 (patch)
treeaf5e8a673103e5696f943b8b4cefbc9a917f0246
parent3cfb60a3c796dd90e83ebfe96bbbabd176b906db (diff)
downloadthird_party-cobbler-b255bf609d10946dd42ad346d67b28c56f04a471.tar.gz
third_party-cobbler-b255bf609d10946dd42ad346d67b28c56f04a471.tar.xz
third_party-cobbler-b255bf609d10946dd42ad346d67b28c56f04a471.zip
Convert argument to string before testing.
-rw-r--r--cobbler/item_repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/item_repo.py b/cobbler/item_repo.py
index c335eaa..1ecd4d7 100644
--- a/cobbler/item_repo.py
+++ b/cobbler/item_repo.py
@@ -76,7 +76,7 @@ class Repo(item.Item):
if type(keep_updated) == bool:
self.keep_updated = keep_updated
return True
- if not keep_updated.lower() in ["yes","y","yup","yeah","1","true"]:
+ if not str(keep_updated).lower() in ["yes","y","yup","yeah","1","true"]:
self.keep_updated = False
else:
self.keep_updated = True