From 00786bc554a2dfacb3c6f02fbb7e9c98f35d4262 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 29 May 2012 08:57:58 +0100 Subject: Use cfg's new global CONF object Implements blueprint cfg-global-object Replace nova.flags.FLAGS with openstack.common.cfg.CONF. In future, we can do a s/FLAGS/CONF/ across the codebase. Change-Id: Ib293873089a5399febd7a3b0410f66e9bef115f1 --- bin/instance-usage-audit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/instance-usage-audit') diff --git a/bin/instance-usage-audit b/bin/instance-usage-audit index 3db812bda..59fff1080 100755 --- a/bin/instance-usage-audit +++ b/bin/instance-usage-audit @@ -65,8 +65,7 @@ FLAGS = flags.FLAGS if __name__ == '__main__': rpc.register_opts(FLAGS) admin_context = context.get_admin_context() - utils.default_cfgfile() - flags.FLAGS(sys.argv) + flags.parse_args(sys.argv) logging.setup() begin, end = utils.last_completed_audit_period() print "Starting instance usage audit" -- cgit