Rename config host to host_ip in api group

The 'host' config is actually an IP address. Let's rename it to
make it clear and consistent with other projects (i.e. Ironic).

Change-Id: I48a8a69c5049341afff545fcabebf0053ab1d242
This commit is contained in:
Hongbin Lu 2017-01-02 12:32:48 -06:00
parent 8c0cc5033f
commit 11ce4753ea
3 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ function create_zun_conf {
iniset $ZUN_CONF database connection `database_connection_url zun`
iniset $ZUN_CONF etcd etcd_host "$HOST_IP"
iniset $ZUN_CONF etcd etcd_port 2379
iniset $ZUN_CONF api host "$ZUN_SERVICE_HOST"
iniset $ZUN_CONF api host_ip "$ZUN_SERVICE_HOST"
iniset $ZUN_CONF api port "$ZUN_SERVICE_PORT"
iniset $ZUN_CONF oslo_policy policy_file $ZUN_POLICY_JSON

View File

@ -64,7 +64,7 @@ class WSGIService(service.ServiceBase):
"must be greater than 0.") % self.workers)
self.server = wsgi.Server(CONF, name, self.app,
host=CONF.api.host,
host=CONF.api.host_ip,
port=CONF.api.port,
use_ssl=use_ssl)

View File

@ -18,7 +18,7 @@ api_service_opts = [
cfg.PortOpt('port',
default=9512,
help='The port for the zun API server.'),
cfg.IPOpt('host',
cfg.IPOpt('host_ip',
default='127.0.0.1',
help='The listen IP for the zun API server.'),
cfg.BoolOpt('enable_ssl_api',