Skip to content

Commit

Permalink
Merge pull request kubevirt-ui#2101 from metalice/CNV-45002-fix-auto-…
Browse files Browse the repository at this point in the history
…start-vm-template

CNV-45002: Fix auto start vm in template wizard
  • Loading branch information
openshift-merge-bot[bot] authored Jul 31, 2024
2 parents 06ddf1b + 24161f3 commit 1de9a53
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ const useDrawer = (template: V1Template) => {
const templateWithRunning = produce(templateWithGeneratedParams, (draftTemplate) => {
const draftVM = getTemplateVirtualMachineObject(draftTemplate);

if (isEmpty(draftVM?.spec?.runStrategy) && draftVM?.spec?.running === undefined)
draftVM.spec.running = true;
if (isEmpty(draftVM?.spec?.runStrategy)) draftVM.spec.running = true;
});

setCustomizedTemplate(templateWithRunning);
Expand Down

0 comments on commit 1de9a53

Please sign in to comment.