From 08ff70be05a1a00ddd8707a6d0bfe74f5942b473 Mon Sep 17 00:00:00 2001 From: Cai Hui Date: Fri, 28 Sep 2018 21:54:35 -0400 Subject: [PATCH] 'Tenant' is replaced by 'project' in keystone starting in API version 3. "Tenant" is the old term for a project in Keystone. Starting in API version 3, "project" is the preferred term. Compatible API version 2, assign "os_project_name" to "tenant_name" Change-Id: Id76bcdb8925c166d3834491c93a60bc1f51a162e --- freezerclient/shell.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/freezerclient/shell.py b/freezerclient/shell.py index 2637708..0ba8c31 100644 --- a/freezerclient/shell.py +++ b/freezerclient/shell.py @@ -174,13 +174,6 @@ class FreezerShell(app.App): help='Specify the region to use' ) - parser.add_argument( - '--os-tenant-id', - dest='os_tenant_id', - default=os.environ.get('OS_TENANT_ID'), - help='Tenant to request authorization on' - ) - parser.add_argument( '--os-project-id', dest='os_project_id', @@ -188,13 +181,6 @@ class FreezerShell(app.App): help='Project to request authorization on' ) - parser.add_argument( - '--os-tenant-name', - dest='os_tenant_name', - default=os.environ.get('OS_TENANT_NAME'), - help='Tenant to request authorization on' - ) - parser.add_argument( '--os-user-domain-name', dest='os_user_domain_name', @@ -250,7 +236,7 @@ class FreezerShell(app.App): 'version': self.options.os_identity_api_version, 'username': self.options.os_username, 'password': self.options.os_password, - 'tenant_name': self.options.os_tenant_name, + 'tenant_name': self.options.os_project_name, 'auth_url': self.options.os_auth_url, 'endpoint': self.options.os_backup_url, 'endpoint_type': self.options.os_endpoint_type,