diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-05-28 15:53:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-05-28 15:53:11 +0000 |
| commit | a081faa41887a28d775f7cf6e85484ed0420ced0 (patch) | |
| tree | ccd42a22e92662ba4e80af55fda3e393b6c28888 | |
| parent | 5789623e2c09a398109d7d8f7a6010aa5a2ac596 (diff) | |
| parent | 0a9229c14fd27925d95613b8256c82bf90892e1e (diff) | |
| download | nova-a081faa41887a28d775f7cf6e85484ed0420ced0.tar.gz nova-a081faa41887a28d775f7cf6e85484ed0420ced0.tar.xz nova-a081faa41887a28d775f7cf6e85484ed0420ced0.zip | |
Merge "Pull binary name from sys.argv[0]"
| -rw-r--r-- | nova/service.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/service.py b/nova/service.py index 3731986c4..245640e5e 100644 --- a/nova/service.py +++ b/nova/service.py @@ -19,7 +19,6 @@ """Generic Node base class for all workers that run on hosts.""" -import inspect import os import random import sys @@ -238,7 +237,7 @@ class Service(service.Service): if not host: host = CONF.host if not binary: - binary = os.path.basename(inspect.stack()[-1][1]) + binary = os.path.basename(sys.argv[0]) if not topic: topic = binary.rpartition('nova-')[2] if not manager: |
