]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Only do keepSetup when also atExit
authorJohn Dilley <john.dilley@citrix.com>
Tue, 17 Nov 2015 20:35:11 +0000 (20:35 +0000)
committerJohn Dilley <john.dilley@citrix.com>
Tue, 17 Nov 2015 20:35:11 +0000 (20:35 +0000)
exec/xenrt/resources.py

index cd506bb798e66f006960a5687a2e1deae2da501b..87b320aa5c6c3bfea78e3efb59f384b6c359b22c 100755 (executable)
@@ -1521,7 +1521,7 @@ class HBALun(CentralResource):
         return self.mpclaim
 
     def release(self, atExit=False):
-        if xenrt.util.keepSetup():
+        if xenrt.util.keepSetup() and atExit:
             xenrt.TEC().logverbose("Not releasing LUN %s" % self.scsiid)
             return