diff options
author | Lin Tan <lin.tan@intel.com> | 2015-12-22 14:04:08 +0800 |
---|---|---|
committer | Tan Lin <lin.tan@intel.com> | 2016-01-14 10:16:16 +0000 |
commit | 1a4d589e285a9176f6aff9b69e03f29bdbc4cdfd (patch) | |
tree | e21ab0602b29108b11b15b25c4a6c682cef1e337 /ironic/dhcp | |
parent | 4d7f766469ae9b555e049b27c42e553ac03b3005 (diff) | |
download | ironic-1a4d589e285a9176f6aff9b69e03f29bdbc4cdfd.tar.gz |
Add choices option to several options
This will help user to avoid wrong configs, and oslo_config exception
ConfigFileValueError will be raised if a wrong value was given in the
config file.
The list of options:
[DEFAULT]/auth_strategy
[glance]/auth_strategy
[glance]/glance_protocol
[neutron]/auth_strategy
[amt]/protocol
[irmc]/remote_image_share_type
[irmc]/port
[irmc]/auth_method
[irmc]/sensor_method
Co-Authored-By: Anton Arefiev <aarefiev@mirantis.com>
Closes-Bug: 1502027
Change-Id: I63cdfbf4eb44c07f7fefa8301e9cda1289654c94
Diffstat (limited to 'ironic/dhcp')
-rw-r--r-- | ironic/dhcp/neutron.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/dhcp/neutron.py b/ironic/dhcp/neutron.py index dee9b6955..e3b4a589c 100644 --- a/ironic/dhcp/neutron.py +++ b/ironic/dhcp/neutron.py @@ -44,6 +44,7 @@ neutron_opts = [ help=_('Client retries in the case of a failed request.')), cfg.StrOpt('auth_strategy', default='keystone', + choices=['keystone', 'noauth'], help=_('Default authentication strategy to use when connecting ' 'to neutron. Can be either "keystone" or "noauth". ' 'Running neutron in noauth mode (related to but not ' |