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:
Arata Notsu 2013-04-06 09:57:33 +09:00
parent 832fca9615
commit 8e05dbfb33
1 changed files with 1 additions and 0 deletions

View File

@ -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)