From e46dd718b77bf06cae682a2bc2c4aa0d0f210ca4 Mon Sep 17 00:00:00 2001 From: John Dilley Date: Wed, 18 Nov 2015 12:16:17 +0000 Subject: [PATCH] Only don't release iscsi if atExit --- exec/xenrt/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) -- 2.39.5