aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/ims/cloudify_ims.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 15:50:44 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 16:20:41 +0200
commit28a706149ede8c644f63c7b5a4f3b02a9806e548 (patch)
treec38d866389b7bfe760aff2a3109a35b98fba9061 /functest/opnfv_tests/vnf/ims/cloudify_ims.py
parentcfb241ab63898eb4a550fc571d34952d33996e9c (diff)
Delete alt images before removing the account
Else it could raise unauthorized exceptions [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console Change-Id: Ia9b857069f775e2c8ecc5e07cf39b3a1fb7e3540 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/vnf/ims/cloudify_ims.py')
-rw-r--r--functest/opnfv_tests/vnf/ims/cloudify_ims.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/functest/opnfv_tests/vnf/ims/cloudify_ims.py b/functest/opnfv_tests/vnf/ims/cloudify_ims.py
index 8fa8c612b..f7931b7b7 100644
--- a/functest/opnfv_tests/vnf/ims/cloudify_ims.py
+++ b/functest/opnfv_tests/vnf/ims/cloudify_ims.py
@@ -279,12 +279,11 @@ class CloudifyIms(cloudify.Cloudify):
self.vnf['descriptor'].get('name'))
except Exception: # pylint: disable=broad-except
self.__logger.exception("Some issue during the undeployment ..")
-
- super(CloudifyIms, self).clean()
if self.image_alt:
self.cloud.delete_image(self.image_alt)
if self.flavor_alt:
self.orig_cloud.delete_flavor(self.flavor_alt.id)
+ super(CloudifyIms, self).clean()
# ----------------------------------------------------------