passed version information while parsing arguments
Change-Id: I1b9dd4a1353799f5001349f973f5d06ddd104069 Closes-Bug: #1432527
This commit is contained in:
parent
7055396481
commit
0f4fee91b9
@ -41,6 +41,7 @@ from heat.common import messaging
|
||||
from heat.common import profiler
|
||||
from heat.common import wsgi
|
||||
from heat.openstack.common import systemd
|
||||
from heat import version
|
||||
|
||||
i18n.enable_lazy()
|
||||
|
||||
@ -49,7 +50,8 @@ LOG = logging.getLogger('heat.api')
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
logging.register_options(cfg.CONF)
|
||||
cfg.CONF(project='heat', prog='heat-api')
|
||||
version = version.version_info.version_string()
|
||||
cfg.CONF(project='heat', prog='heat-api', version=version)
|
||||
logging.setup(cfg.CONF, 'heat-api')
|
||||
logging.set_defaults()
|
||||
messaging.setup()
|
||||
|
@ -42,6 +42,7 @@ from heat.common import profiler
|
||||
from heat.engine import template
|
||||
from heat.openstack.common import service
|
||||
from heat.rpc import api as rpc_api
|
||||
from heat import version
|
||||
|
||||
i18n.enable_lazy()
|
||||
|
||||
@ -49,7 +50,8 @@ LOG = logging.getLogger('heat.engine')
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.register_options(cfg.CONF)
|
||||
cfg.CONF(project='heat', prog='heat-engine')
|
||||
version = version.version_info.version_string()
|
||||
cfg.CONF(project='heat', prog='heat-engine', version=version)
|
||||
logging.setup(cfg.CONF, 'heat-engine')
|
||||
logging.set_defaults()
|
||||
messaging.setup()
|
||||
|
Loading…
x
Reference in New Issue
Block a user