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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user