summaryrefslogtreecommitdiffstats
path: root/cobbler/item_profile.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-08 11:42:41 -0400
committerJim Meyering <jim@meyering.net>2006-05-08 11:42:41 -0400
commit038a4383ccb6230f927960a34288c5cf6fbd3455 (patch)
treec7264ec2a325ed8d74c260b31111df934a87960f /cobbler/item_profile.py
parentfde48f2d1dc6412a0e9e483da8d197fd8c5d8e53 (diff)
downloadthird_party-cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.tar.gz
third_party-cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.tar.xz
third_party-cobbler-038a4383ccb6230f927960a34288c5cf6fbd3455.zip
More pychecker. More comments.
Diffstat (limited to 'cobbler/item_profile.py')
-rw-r--r--cobbler/item_profile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index 4709479..9fd308a 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -134,6 +134,8 @@ class Profile(item.Item):
'true'/'false' in all cases, or Python True/False.
"""
# truthiness needs to be True or False, or (lcased) string equivalents
+ # yes, we *do* want to explicitly test against True/False
+ # the string "foosball" is True, and that is not a valid argument for this function
try:
if (truthiness == False or truthiness.lower() == 'false'):
self.xen_paravirt = False