diff options
author | Zuul <zuul@review.openstack.org> | 2018-08-17 19:08:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-08-17 19:08:17 +0000 |
commit | d435ce1f40c027c319aac89d5973c17cb6fad587 (patch) | |
tree | d3d4291d833c900664433071784abee3b563b0c2 /ironic | |
parent | d792111b46e37181f1447d697f32a6023208df04 (diff) | |
parent | f021922dec168a4bb97516eb6b7a7ca5fe3bfb96 (diff) | |
download | ironic-d435ce1f40c027c319aac89d5973c17cb6fad587.tar.gz |
Merge "Use HostAddressOpt for opts that accept IP and hostnames"
Diffstat (limited to 'ironic')
-rw-r--r-- | ironic/conf/api.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ironic/conf/api.py b/ironic/conf/api.py index d9b74414f..85bfc9464 100644 --- a/ironic/conf/api.py +++ b/ironic/conf/api.py @@ -19,9 +19,10 @@ from oslo_config import cfg from ironic.common.i18n import _ opts = [ - cfg.StrOpt('host_ip', - default='0.0.0.0', - help=_('The IP address on which ironic-api listens.')), + cfg.HostAddressOpt('host_ip', + default='0.0.0.0', + help=_('The IP address or hostname on which ironic-api ' + 'listens.')), cfg.PortOpt('port', default=6385, help=_('The TCP port on which ironic-api listens.')), |