summaryrefslogtreecommitdiff
path: root/ironic_python_agent
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-29 23:33:21 +0000
committerGerrit Code Review <review@openstack.org>2016-12-29 23:33:21 +0000
commitdbc647ceff2fe137a56e73fdb990a8dad63aef7b (patch)
treeefbec7eb69c4166a062214bb525e5378dd643109 /ironic_python_agent
parent16bef4a5ba467b63bfcf3081df2d4db1804bbe1f (diff)
parent83a19a4844daca4f0e3fe9fcdbf925328f0f4429 (diff)
downloadironic-python-agent-dbc647ceff2fe137a56e73fdb990a8dad63aef7b.tar.gz
Merge "Fail IPA startup if no protocol prefix in ironic api address"
Diffstat (limited to 'ironic_python_agent')
-rw-r--r--ironic_python_agent/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ironic_python_agent/config.py b/ironic_python_agent/config.py
index 6c5ca963..2fccb3a2 100644
--- a/ironic_python_agent/config.py
+++ b/ironic_python_agent/config.py
@@ -25,8 +25,10 @@ cli_opts = [
cfg.StrOpt('api_url',
default=APARAMS.get('ipa-api-url'),
deprecated_name='api-url',
+ regex='^http(s?):\/\/.+',
help='URL of the Ironic API. '
- 'Can be supplied as "ipa-api-url" kernel parameter.'),
+ 'Can be supplied as "ipa-api-url" kernel parameter.'
+ 'The value must start with either http:// or https://.'),
cfg.StrOpt('listen_host',
default=APARAMS.get('ipa-listen-host', '0.0.0.0'),