test_stopped_vm.py tries to clean up ISOs that are already deleted as part of Account Deletion. Do not add account owned iso objects to the cleanup list.

(cherry picked from commit 2ecf272dac)

Signed-off-by: Sangeetha <sangeetha.hariharan@citrix.com>
This commit is contained in:
Chandan Purushothama 2013-10-11 15:13:50 -07:00 committed by Sangeetha
parent 833229c416
commit 92bb0ac3a5
1 changed files with 3 additions and 3 deletions

View File

@ -647,7 +647,7 @@ class TestDeployVM(cloudstackTestCase):
self.debug("Successfully created ISO with ID: %s" % iso.id)
try:
iso.download(self.apiclient)
self.cleanup.append(iso)
except Exception as e:
self.fail("Exception while downloading ISO %s: %s"\
% (iso.id, e))
@ -1092,9 +1092,9 @@ class TestDeployHaEnabledVM(cloudstackTestCase):
domainid=self.account.domainid
)
try:
# Dowanload the ISO
# Download the ISO
self.iso.download(self.apiclient)
self.cleanup.append(self.iso)
except Exception as e:
raise Exception("Exception while downloading ISO %s: %s"\
% (self.iso.id, e))