diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-10-16 11:52:51 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-10-16 11:52:51 -0400 |
commit | fbd4653d0c324c1cc39ed88183c79fb11a3f56fa (patch) | |
tree | 44f1fa186c00229e0a0e8fdfaca684bdd73f3bf3 /cobbler/item_profile.py | |
parent | 61363138299e95e19bf66ade33b470d10e13846e (diff) | |
download | third_party-cobbler-fbd4653d0c324c1cc39ed88183c79fb11a3f56fa.tar.gz third_party-cobbler-fbd4653d0c324c1cc39ed88183c79fb11a3f56fa.tar.xz third_party-cobbler-fbd4653d0c324c1cc39ed88183c79fb11a3f56fa.zip |
More pychecker.
Diffstat (limited to 'cobbler/item_profile.py')
-rw-r--r-- | cobbler/item_profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py index ad1cf45..9b9edc5 100644 --- a/cobbler/item_profile.py +++ b/cobbler/item_profile.py @@ -143,9 +143,9 @@ class Profile(item.Item): # 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'): + if (not truthiness or truthiness.lower() == 'false'): self.xen_paravirt = False - elif (truthiness == True or truthiness.lower() == 'true'): + elif (truthiness or truthiness.lower() == 'true'): self.xen_paravirt = True else: return cexceptions.CobblerException("exc_xen_para") |