From: John Dilley Date: Wed, 18 Nov 2015 12:16:17 +0000 (+0000) Subject: Only don't release iscsi if atExit X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e46dd718b77bf06cae682a2bc2c4aa0d0f210ca4;p=xenrt-citrix%2Fxenrt.git Only don't release iscsi if atExit --- diff --git a/exec/xenrt/resources.py b/exec/xenrt/resources.py index 87b320aa5..79b507177 100755 --- a/exec/xenrt/resources.py +++ b/exec/xenrt/resources.py @@ -1297,7 +1297,7 @@ class ISCSILun(_ISCSILunBase): self.secAddrs = {} def release(self, atExit=False): - if xenrt.util.keepSetup(): + if xenrt.util.keepSetup() and atExit: xenrt.TEC().logverbose("Not disconnecting from iSCSI %s:%s" % (self.getServer(), self.getTargetName()))