From 22272488bc746d1c8eb8a1f8a979ad5af8dc4457 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 10 Dec 2024 12:01:27 +0900 Subject: [PATCH] Validate input for [magnum] docker_storage_driver The option accepts only specific values. Define choices to reject anything unsupported. Change-Id: Ib214ed314aea1827357c1ead948721400e6ba1bd --- magnum_tempest_plugin/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magnum_tempest_plugin/config.py b/magnum_tempest_plugin/config.py index 2588643..3953919 100644 --- a/magnum_tempest_plugin/config.py +++ b/magnum_tempest_plugin/config.py @@ -39,7 +39,8 @@ MagnumGroup = [ 'publicURL', 'adminURL', 'internalURL'], help="The endpoint type to use for the coe service."), cfg.StrOpt("docker_storage_driver", - help="Docker storage driver. Supported: devicemapper, overlay"), + choices=['devicemapper', 'overlay'], + help="Docker storage driver."), cfg.StrOpt("image_id", default="fedora-coreos-latest", help="Image id to be used for ClusterTemplate."),