summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-01-04 00:17:37 +0000
committerGerrit Code Review <review@openstack.org>2012-01-04 00:17:37 +0000
commitddc949588461e8b4570aa0b5fc41d5b316fbc8bd (patch)
treea2891b36661c6fb73aa7b1ba29e86c689cdd8a72
parentbdf4b831efe1aef89e85db81cf6de76ae0e93752 (diff)
parentb990dd243b3b178e166d2194e0406368a4c98772 (diff)
Merge "fix bug lp:910491 option "service_host" in keystone.conf not works"
-rw-r--r--AUTHORS1
-rwxr-xr-xkeystone/common/config.py2
-rwxr-xr-xkeystone/server.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index df92020d..f4d3d399 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -40,6 +40,7 @@ Thierry Carrez <thierry@openstack.org>
Todd Willey <xtoddx@gmail.com>
Will Kelly <the.william.kelly@gmail.com>
Vishvananda Ishaya <vishvananda@gmail.com>
+Yaguang Tang <heut2008@gmail.com>
Yogeshwar Srikrishnan <yoga80@yahoo.com>
Yuriy Taraday <yorik.sar@gmail.com>
Ziad Sawalha <github@highbridgellc.com>
diff --git a/keystone/common/config.py b/keystone/common/config.py
index d81133f0..e34b39ee 100755
--- a/keystone/common/config.py
+++ b/keystone/common/config.py
@@ -85,7 +85,7 @@ for a config file.""")
dest="bind_port",
help="specifies port to listen on")
group.add_option('--host', '--bind-host',
- default="0.0.0.0", dest="bind_host",
+ default=None, dest="bind_host",
help="specifies host address to listen on "\
"(default is all or 0.0.0.0)")
# This one is handled by keystone/tools/tracer.py (if loaded)
diff --git a/keystone/server.py b/keystone/server.py
index f23fd60e..11c21d4c 100755
--- a/keystone/server.py
+++ b/keystone/server.py
@@ -160,7 +160,7 @@ class Server():
port = int(self.options.get('bind_port') or
conf.get('service_port', 5000))
if host is None:
- host = self.options.get('bind_host',
+ host = (self.options.get('bind_host') or
conf.get('service_host', '0.0.0.0'))
self.key = "%s-%s:%s" % (self.name, host, port)