From 6cb4613c3e6c721212686a855e16454810ed1535 Mon Sep 17 00:00:00 2001 From: Marek Skrobacki Date: Mon, 25 Nov 2024 11:03:59 +0000 Subject: [PATCH] Revert "fix: fix flavor to ironic resource class conversion" This reverts commit 5ac057b6ee2623e6542f5df3cae25be172bac718 which was added in order to resolve the mismatch between the nova and ironic flavors that had a punctuation in the name. The reverted commit incorrectly changed the resource class name on the Ironic side while it was the Nova side that was missing the underscores. This was resolved in the commit before this one. --- python/understack-flavor-matcher/flavor_matcher/flavor_spec.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/understack-flavor-matcher/flavor_matcher/flavor_spec.py b/python/understack-flavor-matcher/flavor_matcher/flavor_spec.py index 5ae585a40..04c5e79d4 100644 --- a/python/understack-flavor-matcher/flavor_matcher/flavor_spec.py +++ b/python/understack-flavor-matcher/flavor_matcher/flavor_spec.py @@ -49,8 +49,6 @@ def stripped_name(self): _, name = self.name.split(".", 1) if not name: raise Exception(f"Unable to strip envtype from flavor: {self.name}") - # need to strip '.' from the ironic flavor name - name = name.replace(".", "") return name @property