Define LOG globally in baremetal_deploy_helper
Since LOG = getLogger() has been moved from the global scope to the function scope (main), the rest of the module could not find LOG. This patch makes LOG global again. Fixes bug 1165262 Change-Id: I2607802dcbed64135f75011a02ebce95519e4ea1
This commit is contained in:
parent
832fca9615
commit
8e05dbfb33
|
@ -313,6 +313,7 @@ class BareMetalDeploy(object):
|
|||
def main():
|
||||
config.parse_args(sys.argv)
|
||||
logging.setup("nova")
|
||||
global LOG
|
||||
LOG = logging.getLogger('nova.virt.baremetal.deploy_helper')
|
||||
app = BareMetalDeploy()
|
||||
srv = simple_server.make_server('', 10000, app)
|
||||
|
|
Loading…
Reference in New Issue