diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-12-02 13:51:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-12-02 13:51:41 +0000 |
| commit | 658237e15475e535aa6eaaf423bb6d1b67e24a65 (patch) | |
| tree | b209b55e644d2d83c2f533a1e661eea29d3432da | |
| parent | 849eb57ad533dfb7254af307776243cfdd7c804d (diff) | |
| parent | b9dde8d0e317203e349b8e4bca5bc9923c11974e (diff) | |
Merge "Make bin/keystone use port settings in the config file. Fixes bug #898935."
| -rwxr-xr-x | bin/keystone | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/keystone b/bin/keystone index d15a39b3..db4d1dca 100755 --- a/bin/keystone +++ b/bin/keystone @@ -80,8 +80,7 @@ if __name__ == '__main__': config_file = config.find_config_file(options, args) print "Using config file:", config_file - port = options.get('bind_port', conf.get('service_port', 5000)) - port = int(port or 5000) + port = int(options.get('bind_port') or conf.get('service_port', 5000)) host = options.get('bind_host', conf.get('service_host', '0.0.0.0')) # Load Service API server @@ -99,8 +98,7 @@ if __name__ == '__main__': service_ssl, host, port) # Load Admin API server - port = options.get('admin_port', conf.get('admin_port', 35357)) - port = int(port or 35357) + port = int(options.get('admin_port') or conf.get('admin_port', 35357)) host = options.get('bind_host', conf.get('admin_host', '0.0.0.0')) if admin_ssl: |
