diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-05-10 14:25:19 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-05-10 14:26:13 +0100 |
| commit | 51ca0bc2d6b0bd72747bb64801c5aabc5604037a (patch) | |
| tree | ab3dea6aaceb35d3163bfa7f4f99241a52944c1a /openstack/common/plugin | |
| parent | 5b0b59ed56abcd08b5a3f7fcf1af8639f9ef0a7c (diff) | |
| download | oslo-51ca0bc2d6b0bd72747bb64801c5aabc5604037a.tar.gz oslo-51ca0bc2d6b0bd72747bb64801c5aabc5604037a.tar.xz oslo-51ca0bc2d6b0bd72747bb64801c5aabc5604037a.zip | |
cfg: allow options to be marked as required
Implements blueprint cfg-required-options
Add a 'required' flag to option schemas:
StrOpt('foo', required=True)
which causes a RequiredOptError exception to be raised if the
user fails to supply a value for the option on the CLI or in
a config file.
Change-Id: Ied7bb25f0c1582c4991d0f212f4871b9358b73fb
Diffstat (limited to 'openstack/common/plugin')
0 files changed, 0 insertions, 0 deletions
