Add simple field for disabled flavors

When we were equalizing out the old silly names from the new pretty
ones, we missed disabled.

Change-Id: I4cbf5f7c27f640c566460c18951ab9030aae84e4
Depends-On: I523e0ab6e376f5ff6205b1cc1748aa6d546919cb
This commit is contained in:
Monty Taylor 2016-09-26 14:14:15 -05:00
parent e888d8e5cd
commit 30039f0410
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -498,7 +498,10 @@ def normalize_flavors(flavors):
flavor['extra_specs'] = {}
ephemeral = flavor.pop('OS-FLV-EXT-DATA:ephemeral', 0)
is_public = flavor.pop('os-flavor-access:is_public', True)
disabled = flavor.pop('OS-FLV-DISABLED:disabled', False)
# Make sure both the extension version and a sane version are present
flavor['OS-FLV-DISABLED:disabled'] = disabled
flavor['disabled'] = disabled
flavor['OS-FLV-EXT-DATA:ephemeral'] = ephemeral
flavor['ephemeral'] = ephemeral
flavor['os-flavor-access:is_public'] = is_public