diff options
author | Thierry Carrez <thierry@openstack.org> | 2011-02-14 14:26:32 +0100 |
---|---|---|
committer | Thierry Carrez <thierry@openstack.org> | 2011-02-14 14:26:32 +0100 |
commit | 8001f334221a16d8328289f6954ef549844f76f3 (patch) | |
tree | 48739914a866e083698739594b4a4d5b76a40842 /bin/nova-api | |
parent | ef7768154324bbddb56d2c7d7a9d2e354b7d60cf (diff) | |
download | nova-8001f334221a16d8328289f6954ef549844f76f3.tar.gz nova-8001f334221a16d8328289f6954ef549844f76f3.tar.xz nova-8001f334221a16d8328289f6954ef549844f76f3.zip |
Fix DescribeRegion answer by using specific 'listen' configuration parameter instead of overloading ec2_host
Diffstat (limited to 'bin/nova-api')
-rwxr-xr-x | bin/nova-api | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nova-api b/bin/nova-api index 11176a021..eb59d0191 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -59,12 +59,12 @@ def run_app(paste_config_file): LOG.debug(_("App Config: %(api)s\n%(config)r") % locals()) wsgi.paste_config_to_flags(config, { "verbose": FLAGS.verbose, - "%s_host" % api: config.get('host', '0.0.0.0'), + "%s_host" % api: getattr(FLAGS, "%s_host" % api), "%s_port" % api: getattr(FLAGS, "%s_port" % api)}) LOG.info(_("Running %s API"), api) app = wsgi.load_paste_app(paste_config_file, api) apps.append((app, getattr(FLAGS, "%s_port" % api), - getattr(FLAGS, "%s_host" % api))) + config.get('listen', '0.0.0.0'))) if len(apps) == 0: LOG.error(_("No known API applications configured in %s."), paste_config_file) |