diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-23 11:13:18 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-23 11:15:01 +0200 |
commit | 8c9006fcc015706547514ec29baccbff3bb9a606 (patch) | |
tree | 56a58af607310312ec37866a37de37b4117aaa2e | |
parent | 08b567ad42c2625593bf2bf06ec596827015af00 (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>
-rw-r--r-- | functest/core/tenantnetwork.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py index ec64a52e5..e9ac6d3ba 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) |