Merge "nova-dhcpbridge should require the FLAGFILE is set"

This commit is contained in:
Jenkins
2012-11-25 11:03:06 +00:00
committed by Gerrit Code Review

View File

@@ -95,8 +95,8 @@ def init_leases(network_id):
def main():
"""Parse environment and arguments and call the approproate action."""
flagfile = os.environ.get('FLAGFILE', CONF.dhcpbridge_flagfile)
argv = config.parse_args(sys.argv, default_config_files=[flagfile])
argv = config.parse_args(sys.argv,
default_config_files=[os.environ['FLAGFILE']])
logging.setup("nova")
if int(os.environ.get('TESTING', '0')):