Skip to content

Commit

Permalink
Bugfix: staticmethod was what I meant
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Büchse <[email protected]>
  • Loading branch information
mbuechse committed Jan 23, 2024
1 parent 88c51ac commit 6a3b925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/iaas/flavor-naming/flavor_name_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class SyntaxV1:
gpu = re.compile(r"\-([gG])([NAI])([^:-h]*)(?::([0-9]+)|)(h*)")
ib = re.compile(r"\-(ib)")

@classmethod
@staticmethod
def from_v2(nm):
"""v2 to v1 flavor name transformation"""
return nm.replace('-', ':').replace('_', '-').replace('SCS:', 'SCS-')
Expand All @@ -323,7 +323,7 @@ class SyntaxV2:
gpu = re.compile(r"_([gG])([NAI])([^-h]*)(?:\-([0-9]+)|)(h*)")
ib = re.compile(r"_(ib)")

@classmethod
@staticmethod
def from_v1(nm):
"""v1 to v2 flavor name transformation"""
return nm.replace('-', '_').replace(':', '-').replace('SCS_', 'SCS-')
Expand Down

0 comments on commit 6a3b925

Please sign in to comment.