mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
Merge pull request #180 from 0xFelix/running-run-strategy
fix(kubevirt_vm): Allow switching between running and run_strategy
This commit is contained in:
@@ -347,7 +347,9 @@ def create_vm(params: Dict) -> Dict:
|
||||
|
||||
if (run_strategy := params.get("run_strategy")) is not None:
|
||||
vm["spec"]["runStrategy"] = run_strategy
|
||||
vm["spec"]["running"] = None
|
||||
else:
|
||||
vm["spec"]["runStrategy"] = None
|
||||
vm["spec"]["running"] = (
|
||||
running if (running := params.get("running")) is not None else True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user