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):