Merge "Use HostAddressOpt for opts that accept IP and hostnames"
This commit is contained in:
@@ -53,18 +53,19 @@ core_opts = [
|
|||||||
cfg.BoolOpt('allow_sorting', default=False,
|
cfg.BoolOpt('allow_sorting', default=False,
|
||||||
help=_("Allow the usage of the sorting")),
|
help=_("Allow the usage of the sorting")),
|
||||||
cfg.StrOpt('pagination_max_limit', default="-1",
|
cfg.StrOpt('pagination_max_limit', default="-1",
|
||||||
help=_("The maximum number of items returned in a single "
|
help=_("The maximum number of items returned "
|
||||||
"response, value was 'infinite' or negative integer "
|
"in a single response, value was 'infinite' "
|
||||||
"means no limit")),
|
"or negative integer means no limit")),
|
||||||
cfg.StrOpt('host', default=utils.get_hostname(),
|
cfg.HostAddressOpt('host', default=utils.get_hostname(),
|
||||||
help=_("The hostname Tacker is running on")),
|
help=_("The hostname Tacker is running on")),
|
||||||
]
|
]
|
||||||
|
|
||||||
core_cli_opts = [
|
core_cli_opts = [
|
||||||
cfg.StrOpt('state_path',
|
cfg.StrOpt('state_path',
|
||||||
default='/var/lib/tacker',
|
default='/var/lib/tacker',
|
||||||
help=_("Where to store Tacker state files. "
|
help=_("Where to store Tacker state files. "
|
||||||
"This directory must be writable by the agent.")),
|
"This directory must be writable by "
|
||||||
|
"the agent.")),
|
||||||
]
|
]
|
||||||
|
|
||||||
logging.register_options(cfg.CONF)
|
logging.register_options(cfg.CONF)
|
||||||
|
|||||||
Reference in New Issue
Block a user