Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/ironic-understack/ironic_understack/flavor_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def from_yaml(yaml_str: str) -> "FlavorSpec":
model=data["model"],
memory_gb=data["memory_gb"],
cpu_cores=data["cpu_cores"],
cpu_model=data.get("cpu_model", data.get("cpu_models", [""]).pop()),
cpu_model=data["cpu_model"],
drives=data["drives"],
pci=data.get("pci", []),
)
Expand Down
12 changes: 1 addition & 11 deletions schema/flavor.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@
"description": "Processor model",
"type": "string"
},
"cpu_models": {
"description": "Processor models",
"type": "array",
"items": {
"type": "string",
"description": "Processor model"
},
"minItems": 1,
"maxItems": 1
},
"memory_gb": {
"description": "Total memory in GB",
"type": "number"
Expand Down Expand Up @@ -80,5 +70,5 @@
}
}
},
"required": [ "name", "manufacturer", "model", "cpu_cores", "cpu_models", "memory_gb", "drives" ]
"required": [ "name", "manufacturer", "model", "cpu_cores", "cpu_model", "memory_gb", "drives" ]
}