Validate [molds] storage while loading config files

... instead of only documenting the valid choices.

Change-Id: I5f73da7f69242ec21dd60da36e7b176213888db1
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami 2025-12-20 19:32:11 +09:00
parent 534e9ff6b8
commit b51930c0d2

View file

@ -19,8 +19,8 @@ from ironic.common.i18n import _
opts = [
cfg.StrOpt('storage',
default='swift',
help=_('Configuration mold storage location. Supports "swift" '
'and "http". By default "swift".')),
choices=['swift', 'http'],
help=_('Configuration mold storage location.')),
cfg.StrOpt('user',
help=_('User for "http" Basic auth. By default set empty.')),
cfg.StrOpt('password',