summaryrefslogtreecommitdiff
path: root/tempest/cmd
diff options
context:
space:
mode:
authorSoniya Vyas <svyas@redhat.com>2019-12-24 19:20:43 +0530
committerSoniya Vyas <svyas@redhat.com>2020-01-28 17:47:06 +0530
commit195767a062009445940e6cbfa06d096141be3cc2 (patch)
treee8df3eb0e3c0825a94ac4d3f9a224ac287b5462e /tempest/cmd
parente459e0d4489f7bc1eb7a821a9def0721a8f94c6a (diff)
downloadtempest-195767a062009445940e6cbfa06d096141be3cc2.tar.gz
Removal of deprecated argument[os-tenant-name]
Use of os-tenant-name or OS_TENANT_NAME is deprecated. Instead of it, os-project-name is expected to be used. This patch depends on below mentioned patch, since devstack still uses the deprecated argument. Depends-on: I624e1dc57a3d3533322fb298c01f70241d0400ed Signed-off by: Soniya Vyas<svyas@redhat.com> Change-Id: I3b926f8abb6fce3d2eab93310ce3959c68aa9a6d
Diffstat (limited to 'tempest/cmd')
-rwxr-xr-xtempest/cmd/account_generator.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/tempest/cmd/account_generator.py b/tempest/cmd/account_generator.py
index 7ea0099ec..153578646 100755
--- a/tempest/cmd/account_generator.py
+++ b/tempest/cmd/account_generator.py
@@ -46,7 +46,6 @@ Param CLI Environment Variable
Username ``--os-username`` OS_USERNAME
Password ``--os-password`` OS_PASSWORD
Project ``--os-project-name`` OS_PROJECT_NAME
-Tenant ``--os-tenant-name`` (depr.) OS_TENANT_NAME
Domain ``--os-domain-name`` OS_DOMAIN_NAME
======== ============================ ====================
@@ -75,9 +74,6 @@ Optional Arguments
* ``--os-project-name <auth-project-name>`` (Optional) Project to request
authorization on. Defaults to env[OS_PROJECT_NAME].
-* ``--os-tenant-name <auth-tenant-name>`` (Optional, deprecated) Tenant to
- request authorization on. Defaults to env[OS_TENANT_NAME].
-
* ``--os-domain-name <auth-domain-name>`` (Optional) Domain the user and
project belong to. Defaults to env[OS_DOMAIN_NAME].
@@ -139,7 +135,7 @@ def get_credential_provider(opts):
'dhcp': True}
admin_creds_dict = {'username': opts.os_username,
'password': opts.os_password}
- _project_name = opts.os_project_name or opts.os_tenant_name
+ _project_name = opts.os_project_name
if opts.identity_version == 3:
admin_creds_dict['project_name'] = _project_name
admin_creds_dict['domain_name'] = opts.os_domain_name or 'Default'
@@ -221,10 +217,6 @@ def _parser_add_args(parser):
metavar='<auth-project-name>',
default=os.environ.get('OS_PROJECT_NAME'),
help='Defaults to env[OS_PROJECT_NAME].')
- parser.add_argument('--os-tenant-name',
- metavar='<auth-tenant-name>',
- default=os.environ.get('OS_TENANT_NAME'),
- help='Defaults to env[OS_TENANT_NAME].')
parser.add_argument('--os-domain-name',
metavar='<auth-domain-name>',
default=os.environ.get('OS_DOMAIN_NAME'),
@@ -301,10 +293,6 @@ def main(opts=None):
if log_warning:
LOG.warning("Use of: 'tempest-account-generator' is deprecated, "
"please use: 'tempest account-generator'")
- if opts.os_tenant_name:
- LOG.warning("'os-tenant-name' and 'OS_TENANT_NAME' are both "
- "deprecated, please use 'os-project-name' or "
- "'OS_PROJECT_NAME' instead")
resources = []
for count in range(opts.concurrency):
# Use N different cred_providers to obtain different sets of creds