diff --git a/bin/heat-api b/bin/heat-api index f49ead0829..ff93bbee5c 100755 --- a/bin/heat-api +++ b/bin/heat-api @@ -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() diff --git a/bin/heat-engine b/bin/heat-engine index a6dd89a51c..5f43784c0a 100755 --- a/bin/heat-engine +++ b/bin/heat-engine @@ -43,6 +43,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() @@ -50,7 +51,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()