Skip to content

Commit 6a3b925

Browse files
committed
Bugfix: staticmethod was what I meant
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 88c51ac commit 6a3b925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/iaas/flavor-naming/flavor_name_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class SyntaxV1:
298298
gpu = re.compile(r"\-([gG])([NAI])([^:-h]*)(?::([0-9]+)|)(h*)")
299299
ib = re.compile(r"\-(ib)")
300300

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

326-
@classmethod
326+
@staticmethod
327327
def from_v1(nm):
328328
"""v1 to v2 flavor name transformation"""
329329
return nm.replace('-', '_').replace(':', '-').replace('SCS_', 'SCS-')

0 commit comments

Comments
 (0)