Validate input for [magnum] docker_storage_driver

The option accepts only specific values. Define choices to reject
anything unsupported.

Change-Id: Ib214ed314aea1827357c1ead948721400e6ba1bd
This commit is contained in:
Takashi Kajinami 2024-12-10 12:01:27 +09:00
parent 450943795b
commit 22272488bc

View File

@ -39,7 +39,8 @@ MagnumGroup = [
'publicURL', 'adminURL', 'internalURL'], 'publicURL', 'adminURL', 'internalURL'],
help="The endpoint type to use for the coe service."), help="The endpoint type to use for the coe service."),
cfg.StrOpt("docker_storage_driver", cfg.StrOpt("docker_storage_driver",
help="Docker storage driver. Supported: devicemapper, overlay"), choices=['devicemapper', 'overlay'],
help="Docker storage driver."),
cfg.StrOpt("image_id", cfg.StrOpt("image_id",
default="fedora-coreos-latest", default="fedora-coreos-latest",
help="Image id to be used for ClusterTemplate."), help="Image id to be used for ClusterTemplate."),