Merge "use register_cli_opts instead of register_opts"

This commit is contained in:
Jenkins 2014-07-02 15:40:24 +00:00 committed by Gerrit Code Review
commit 0aaf6133b8

View File

@ -38,8 +38,8 @@ opts = [
cfg.StrOpt('stack-domain-admin-password', cfg.StrOpt('stack-domain-admin-password',
help="Password to set for stack-domain-admin"), help="Password to set for stack-domain-admin"),
] ]
for opt in opts:
cfg.CONF.register_opt(opt, cli=True) cfg.CONF.register_cli_opts(opts)
cfg.CONF(sys.argv[1:], project='heat', prog='heat-keystone-setup-domain') cfg.CONF(sys.argv[1:], project='heat', prog='heat-keystone-setup-domain')
HEAT_DOMAIN_NAME = os.environ.get( HEAT_DOMAIN_NAME = os.environ.get(