]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
check for if not None not just if not
authorCraig Orendi <craig.orendi@citrix.com>
Wed, 11 Nov 2015 16:52:17 +0000 (16:52 +0000)
committerCraig Orendi <craig.orendi@citrix.com>
Wed, 11 Nov 2015 16:52:17 +0000 (16:52 +0000)
exec/xenrt/lib/xenserver/dotnetagentlicensing.py

index 81f5e4b9126d5ea9f42b7f4ffbb5adc98fb94396..cea3aaedc75903690a4c846ec59d09129ef289c5 100755 (executable)
@@ -216,7 +216,7 @@ class VMUser(ActorImp):
     def checkKeyPresent(self):
         if self.os.winRegExists(self.HIVE_CONST, self.KEY_CONST, self.AU_CONST, healthCheckOnFailure=False):
             key = self.os.winRegLookup(self.HIVE_CONST, self.KEY_CONST, self.AU_CONST, healthCheckOnFailure=False)
-            if key:
+            if key != None:
                 return True
         return False