diff options
-rw-r--r-- | functest/core/tenantnetwork.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py index 9f5913c70..ec64a52e5 100644 --- a/functest/core/tenantnetwork.py +++ b/functest/core/tenantnetwork.py @@ -106,6 +106,10 @@ class NewProject(object): self.orig_cloud.delete_project(self.project.id) if self.role: self.orig_cloud.delete_role(self.role.id) + sec_id = self.cloud.list_security_groups( + filters={'name': 'default', + 'project_id': self.project.id})[0].id + self.orig_cloud.delete_security_group(sec_id) except Exception: # pylint: disable=broad-except self.__logger.exception("Cannot clean all resources") |