Skip to content

Commit

Permalink
Bugfix: wrong argument (addendum to PR #645) (#706)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Büchse <[email protected]>
  • Loading branch information
mbuechse authored Aug 20, 2024
1 parent 39acbd3 commit 477c01f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Tests/iaas/flavor-naming/flavor-add-extra-specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def generate_flavorname(flavor, cpu_type, disk0_type):
cpuram.cpus = flavor.vcpus
cpuram.cputype = cpu_type
cpuram.ram = int((flavor.ram+12)/512)/2.0
flavorname = Flavorname(main)
flavorname = Flavorname(cpuram)
if flavor.disk:
disk = Disk()
disk.disksize = flavor.disk
Expand All @@ -121,17 +121,6 @@ def revert_dict(value, dct, extra=""):
logger.error(f"ERROR: {extra} {value} should be in {dct.items()}")


def _extract_core_items(flavorname: Flavorname):
cputype = flavorname.cpuram.cputype
disktype = None if flavorname.disk is None else flavorname.disk.disktype
return cputype, disktype


def _extract_core(flavorname: Flavorname):
cputype, disktype = _extract_core_items(flavorname)
return f"cputype={cputype}, disktype={disktype}"


class ActionReport:
@staticmethod
def set_extra_spec(flavor, key, value):
Expand Down

0 comments on commit 477c01f

Please sign in to comment.