Skip to content
Snippets Groups Projects
Commit 5109a6a8 authored by Attila Farkas's avatar Attila Farkas
Browse files

Handle empty flavor attribute

parent 0c6f420a
No related branches found
No related tags found
1 merge request!24Handle empty flavor attribute
......@@ -53,7 +53,7 @@ def _add_extra_arguments(definitions, flags):
def _add_flavors(definitions):
"""Change flavor attribute to cpus and memory."""
for host in definitions["hosts"]:
if "flavor" in host:
if "flavor" in host and host["flavor"]:
if host["flavor"] not in FLAVORS:
print("Error: Not supported flavor: " + host["flavor"])
raise AttributeError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment