From: John Dilley Date: Tue, 17 Nov 2015 20:35:11 +0000 (+0000) Subject: Only do keepSetup when also atExit X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=24342980f33c87bf081b488a72d8fc20d4682a70;p=xenrt-citrix%2Fxenrt.git Only do keepSetup when also atExit --- diff --git a/exec/xenrt/resources.py b/exec/xenrt/resources.py index cd506bb79..87b320aa5 100755 --- a/exec/xenrt/resources.py +++ b/exec/xenrt/resources.py @@ -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