Switch from FLAGS to CONF in bin

Use the global CONF variable instead of FLAGS. This is purely a cleanup
since FLAGS is already just another reference to CONF.

We leave the nova.flags imports until a later cleanup commit since
removing them may cause unpredictable problems due to config options not
being registered.

Change-Id: Id0c59b2dc8002ec89ccbc5e5d7986fb68d3a693d
This commit is contained in:
Mark McLoughlin
2012-11-04 21:32:38 +00:00
parent d61df6e2f0
commit 73a895486d
14 changed files with 69 additions and 65 deletions

View File

@@ -40,12 +40,13 @@ from nova.openstack.common import log as logging
from nova import service
from nova import utils
CONF = config.CONF
if __name__ == '__main__':
config.parse_args(sys.argv)
FLAGS = flags.FLAGS
logging.setup("nova")
utils.monkey_patch()
server = service.Service.create(binary='nova-network',
topic=FLAGS.network_topic)
topic=CONF.network_topic)
service.serve(server)
service.wait()