Use project_name/admin_project_name config option
This deprecates the tenant_name and admin_tenant_name config option
for integration tests.
Change-Id: Iabc56ddabeeda36d27ea3c9ce04c71e13be676d7
diff --git a/common/clients.py b/common/clients.py
index 58e0fce..d4ccda3 100644
--- a/common/clients.py
+++ b/common/clients.py
@@ -97,10 +97,10 @@
return self.conf.admin_password
return self.conf.password
- def _tenant_name(self):
+ def _project_name(self):
if self.admin_credentials:
- return self.conf.admin_tenant_name
- return self.conf.tenant_name
+ return self.conf.admin_project_name
+ return self.conf.project_name
def _get_orchestration_client(self):
endpoint = os.environ.get('HEAT_URL')
@@ -130,7 +130,7 @@
kwargs = {
'username': self._username(),
'password': self._password(),
- 'tenant_name': self._tenant_name(),
+ 'project_name': self._project_name(),
'auth_url': self.conf.auth_url
}
# keystone v2 can't ignore domain details