diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-07-15 20:58:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-07-15 20:58:19 +0000 |
| commit | d96cc9fc08caa51a2f7bdab47d0546fdbc00f495 (patch) | |
| tree | 18590ebfecd99df47bead8ba828f8ee10210632e /cinderclient/shell.py | |
| parent | e2f2242d400decfd1f3294f077148b42e0e88c84 (diff) | |
| parent | 426055c48e3afcdb4aa5b68b7247a074e2f8ddf5 (diff) | |
| download | python-cinderclient-d96cc9fc08caa51a2f7bdab47d0546fdbc00f495.tar.gz | |
Merge "OS_TENANT_NAME is not required when we have OS_PROJECT_NAME"
Diffstat (limited to 'cinderclient/shell.py')
| -rw-r--r-- | cinderclient/shell.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py index 287bc0f..e18b848 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -269,6 +269,7 @@ class OpenStackCinderShell(object): parser.add_argument('--os-tenant-name', metavar='<auth-tenant-name>', default=utils.env('OS_TENANT_NAME', + 'OS_PROJECT_NAME', 'CINDER_PROJECT_ID'), help='Tenant name. ' 'Default=env[OS_TENANT_NAME].') @@ -278,6 +279,7 @@ class OpenStackCinderShell(object): parser.add_argument('--os-tenant-id', metavar='<auth-tenant-id>', default=utils.env('OS_TENANT_ID', + 'OS_PROJECT_ID', 'CINDER_TENANT_ID'), help='ID for the tenant. ' 'Default=env[OS_TENANT_ID].') @@ -739,8 +741,10 @@ class OpenStackCinderShell(object): username = self.options.os_username password = self.options.os_password - tenant_id = self.options.os_tenant_id - tenant_name = self.options.os_tenant_name + tenant_id = (self.options.os_tenant_id + or self.options.os_project_id) + tenant_name = (self.options.os_tenant_name + or self.options.os_project_name) return v2_auth.Password( v2_auth_url, |
