summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-09-23 11:13:18 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-09-23 11:15:50 +0200
commitb9e2c933a91bb1b8cdfddc675b90a6e8f2aca777 (patch)
treec35b775c8ee9ef673b1c5d1a4a6f384b2bfeb00b
parenta6aabd23288c2d1b0062c4eb19f3c61c4f825310 (diff)
List default secgroup via orig user
Else the generated account can be already removed [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/324/console Change-Id: I93d88763cdc67cd38286c24ad830244e0c12e019 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f6748c8f3737bf7fbae519319b93e88db9e65834)
-rw-r--r--functest/core/tenantnetwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py
index 476849e5e..bea38e98b 100644
--- a/functest/core/tenantnetwork.py
+++ b/functest/core/tenantnetwork.py
@@ -106,7 +106,7 @@ 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(
+ sec_id = self.orig_cloud.list_security_groups(
filters={'name': 'default',
'project_id': self.project.id})[0].id
self.orig_cloud.delete_security_group(sec_id)