commit | c03cfab4a6bcd20da4250accd16f3b749e64e3dc | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Sat Sep 28 18:19:06 2013 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Sat Sep 28 18:19:06 2013 +0000 |
tree | 30c245ed5e62422ba9579b092c4d7e2bc22cb310 | |
parent | 5856e4d6a05eef00d4b7d38088f2498a5acbb267 [diff] | |
parent | 1eb40464ada338d229bd680be7579abbd9d1b129 [diff] |
Merge "_get_tenant_by_name doesn't return correctly"
diff --git a/tempest/common/isolated_creds.py b/tempest/common/isolated_creds.py index 93dec71..8c82ec0 100644 --- a/tempest/common/isolated_creds.py +++ b/tempest/common/isolated_creds.py
@@ -94,7 +94,9 @@ for ten in tenants: if ten['name'] == name: tenant = ten - raise exceptions.NotFound('No such tenant') + break + else: + raise exceptions.NotFound('No such tenant') return tenant def _create_user(self, username, password, tenant, email):