From 55a4802b806c111ff0b200c433dad9f36613db91 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Tue, 1 Jul 2014 16:43:45 +0530 Subject: [PATCH] use register_cli_opts instead of register_opts oslo.config provides api register_cli_opts to register multiple opts at once and same is used in this patch to replace the register_opts Change-Id: I80b9bf37308c9e7085947200bc7c393c15e5e29d Closes-bug: #1336224 --- bin/heat-keystone-setup-domain | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/heat-keystone-setup-domain b/bin/heat-keystone-setup-domain index f5737e939a..d602a896b6 100755 --- a/bin/heat-keystone-setup-domain +++ b/bin/heat-keystone-setup-domain @@ -38,8 +38,8 @@ opts = [ cfg.StrOpt('stack-domain-admin-password', 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') HEAT_DOMAIN_NAME = os.environ.get(