From dc73761ff19b363f53015222e258186af2378114 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 19 Dec 2023 21:13:44 +0100 Subject: [PATCH] Support local_storage extra spec (#92) Can be removed when we are able to use scs:local-storage extra spec. Signed-off-by: Christian Berendt --- openstack_flavor_manager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_flavor_manager/main.py b/openstack_flavor_manager/main.py index 91e447a..1515c2c 100644 --- a/openstack_flavor_manager/main.py +++ b/openstack_flavor_manager/main.py @@ -73,7 +73,7 @@ def set_flavor(self, flavor_spec: dict, defaults: dict) -> Flavor | None: # we could exclude keys explicitly, like so: # if key not in ('name', 'ram', 'cpus', 'disk', 'public', 'disabled') # but the extra specs should be prefixed, so we can as well do it like so: - if ":" in key + if ":" in key or key in ["local_storage"] } self.conn.set_flavor_specs( flavor_id=flavor.id,