Skip to content

Commit

Permalink
Appease flake8
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 af662fd commit aea03c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Tests/iaas/flavor-naming/flavor_name_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def input_component(self, targetcls):
print(targetcls.type)
attrs = [att for att in targetcls.__dict__.values() if isinstance(att, Attr)]
for i, attr in enumerate(attrs):
fname = attr.attr
fdesc = attr.name
tbl = attr.get_tbl(target)
if tbl:
Expand Down Expand Up @@ -344,7 +343,7 @@ def output_component(self, pattern, component, parts):
print(pattern, i)
raise RuntimeError("Pattern problem")
i += 1

def __call__(self, flavorname):
parts = [self.prefix]
self.output_component(self.cpuram, flavorname.cpuram, parts)
Expand Down Expand Up @@ -458,13 +457,13 @@ def old_to_new(nm):
class CompatLayer:
"""
This class provides the functionality that was previously imported via
fnmck = importlib.import_module("flavor-name-check")
Instead, you now do
fnmck = CompatLayer()
A few adaptation are necessary though because this package uses `Flavorname`
instead of the old `tuple` of `Prop`s.
"""
Expand Down

0 comments on commit aea03c1

Please sign in to comment.