From 287170cf269b71a9d7fbf20453faae59f8e244f7 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 19 Oct 2017 09:47:18 +0100 Subject: [PATCH] conf: Validate '[api] vendordata_providers' options Only two options are currently supported. Let's hardcode this behavior. Change-Id: I7609f408294ca151db9b7ff43d8c7bf6a4638a94 --- nova/conf/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/conf/api.py b/nova/conf/api.py index 6135d1236..4c163c8aa 100644 --- a/nova/conf/api.py +++ b/nova/conf/api.py @@ -71,6 +71,7 @@ Possible values: * Any string that represents zero or more versions, separated by spaces. """), cfg.ListOpt('vendordata_providers', + item_type=cfg.types.String(choices=['StaticJSON', 'DynamicJSON']), default=['StaticJSON'], deprecated_group="DEFAULT", help="""