diff options
Diffstat (limited to 'functest/opnfv_tests/vnf/router')
-rw-r--r-- | functest/opnfv_tests/vnf/router/cloudify_vrouter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py index 8d9ddbd1f..79e8d801a 100644 --- a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py +++ b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py @@ -230,7 +230,7 @@ class CloudifyVrouter(cloudify.Cloudify): dep_name = self.vnf['descriptor'].get('name') # kill existing execution self.__logger.info('Deleting the current deployment') - exec_list = self.cfy_client.executions.list(dep_name) + exec_list = self.cfy_client.executions.list() for execution in exec_list: if execution['status'] == "started": try: @@ -251,6 +251,10 @@ class CloudifyVrouter(cloudify.Cloudify): self.__logger.exception("Some issue during the undeployment ..") super(CloudifyVrouter, 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) def wait_for_execution(client, execution, logger, timeout=7200, ): |