Merge "Use HostAddressOpt for opts that accept IP and hostnames"

This commit is contained in:
Zuul 2018-06-14 07:12:50 +00:00 committed by Gerrit Code Review
commit e22215a3ef
1 changed files with 7 additions and 6 deletions

View File

@ -15,12 +15,13 @@ from oslo_config import cfg
from magnum.i18n import _
service_opts = [
cfg.StrOpt('host',
help=_('Name of this node. This can be an opaque identifier. '
'It is not necessarily a hostname, FQDN, or IP address. '
'However, the node name must be valid within '
'an AMQP key, and if using ZeroMQ, a valid '
'hostname, FQDN, or IP address.')),
cfg.HostAddressOpt('host',
help=_('Name of this node. This can be an opaque '
'identifier. It is not necessarily a hostname, '
'FQDN, or IP address. However, the node name '
'must be valid within an AMQP key, and if using '
'ZeroMQ, a valid hostname, FQDN, or IP '
'address.')),
]