Skip to content

Commit

Permalink
nova_flavors: fix the casing on the extra_specs
Browse files Browse the repository at this point in the history
  • Loading branch information
skrobul committed Nov 25, 2024
1 parent 7fdbc12 commit 2f0360d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def baremetal_nova_resource_class(self):
https://docs.openstack.org/ironic/latest/install/configure-nova-flavors.html
"""
converted_name = re.sub(r"[^\w]", "", self.stripped_name).upper()
return f"RESOURCES:CUSTOM_BAREMETAL_{converted_name}"
return f"resources:CUSTOM_BAREMETAL_{converted_name}"

@property
def env_type(self):
Expand Down
2 changes: 1 addition & 1 deletion python/understack-flavor-matcher/tests/test_flavor_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def test_memory_gib(valid_yaml):
def test_baremetal_nova_resource_class(valid_yaml):
flv = FlavorSpec.from_yaml(valid_yaml)
assert (
flv.baremetal_nova_resource_class == "RESOURCES:CUSTOM_BAREMETAL_GP2ULTRAMEDIUM"
flv.baremetal_nova_resource_class == "resources:CUSTOM_BAREMETAL_GP2ULTRAMEDIUM"
)


Expand Down

0 comments on commit 2f0360d

Please sign in to comment.