Skip to content

Commit

Permalink
Also handle cpugen and initialize to 0 if unset.
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Garloff <kurt@garloff.de>
  • Loading branch information
garloff committed Dec 18, 2023
1 parent b3f38e0 commit 8409153
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/iaas/flavor-naming/flavor-form.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def generate_name(form):
elif "gen" in spec.pattrs and not hasattr(spec, "gen"):
setattr(spec, "gen", "")
print(f'{spec.type}:gen=""', file=sys.stderr)
elif "cpugen" in spec.pattrs and not hasattr(spec, "cpugen"):
setattr(spec, "cpugen", 0)
print(f'{spec.type}:cpugen=0', file=sys.stderr)

# Debugging
print(*FLAVOR_SPEC, file=sys.stderr, sep='\n')
Expand Down

0 comments on commit 8409153

Please sign in to comment.