diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-12-29 23:33:21 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-12-29 23:33:21 +0000 |
| commit | dbc647ceff2fe137a56e73fdb990a8dad63aef7b (patch) | |
| tree | efbec7eb69c4166a062214bb525e5378dd643109 /ironic_python_agent | |
| parent | 16bef4a5ba467b63bfcf3081df2d4db1804bbe1f (diff) | |
| parent | 83a19a4844daca4f0e3fe9fcdbf925328f0f4429 (diff) | |
| download | ironic-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.py | 4 |
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'), |
