Merge "Fixing ignored value of --config parameter in tempest account-generator"

changes/78/606978/7
Zuul 4 years ago committed by Gerrit Code Review
commit 139b453d00

@ -291,13 +291,16 @@ class TempestAccountGenerator(command.Command):
def main(opts=None):
setup_logging()
log_warning = False
if not opts:
LOG.warning("Use of: 'tempest-account-generator' is deprecated, "
"please use: 'tempest account-generator'")
log_warning = True
opts = get_options()
if opts.config_file:
config.CONF.set_config_path(opts.config_file)
setup_logging()
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 "

Loading…
Cancel
Save