From e237c86446ba4ecba95cf65a2609733707aab68e Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Sat, 17 Nov 2012 22:50:21 +0000 Subject: Use CONF.import_opt() for nova.config opts The only reason for importing nova.config now is where one of the options defined in that file is needed. Rather than importing nova.config using an import statement, use CONF.import_opt() so that it is clear which option we actually require. In future, we will move many options out of nova.config so many of these import_opt() calls will either go away or cause a module other than nova.config to be imported. Change-Id: I0646efddecdf2530903afd50c1f4364cb1d5dce1 --- bin/nova-api | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/nova-api') diff --git a/bin/nova-api b/bin/nova-api index 6d3304a95..ceb7ca496 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -43,6 +43,7 @@ from nova import service from nova import utils CONF = cfg.CONF +CONF.import_opt('enabled_apis', 'nova.config') if __name__ == '__main__': config.parse_args(sys.argv) -- cgit