diff options
| author | Arata Notsu <notsu@virtualtech.jp> | 2013-04-06 09:57:33 +0900 |
|---|---|---|
| committer | Arata Notsu <notsu@virtualtech.jp> | 2013-04-06 09:57:33 +0900 |
| commit | 152e460a004e55dd02e6e8363401302da3bd43b4 (patch) | |
| tree | ab2990fa670696b0a1660aea7637b9447f40a6e8 /nova/cmd | |
| parent | 24582abf82842cbb922e38c78e281eda56f981e2 (diff) | |
| download | nova-152e460a004e55dd02e6e8363401302da3bd43b4.tar.gz nova-152e460a004e55dd02e6e8363401302da3bd43b4.tar.xz nova-152e460a004e55dd02e6e8363401302da3bd43b4.zip | |
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
Diffstat (limited to 'nova/cmd')
| -rw-r--r-- | nova/cmd/baremetal_deploy_helper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/cmd/baremetal_deploy_helper.py b/nova/cmd/baremetal_deploy_helper.py index 5ccd43b56..e7190a37d 100644 --- a/nova/cmd/baremetal_deploy_helper.py +++ b/nova/cmd/baremetal_deploy_helper.py @@ -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) |
