Skip to content

Commit

Permalink
Support local_storage extra spec (#92)
Browse files Browse the repository at this point in the history
Can be removed when we are able to use scs:local-storage extra spec.

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Dec 19, 2023
1 parent 716dfc1 commit dc73761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstack_flavor_manager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dc73761

Please sign in to comment.