From 535a6067c949d66682312d088d4bd8eefed7fe97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Aug 2026 07:55:52 +0000 Subject: [PATCH] fix: validate Windows CloudInit YAML on save Co-authored-by: a110605 <5744158+a110605@users.noreply.github.com> --- .../edit/harvesterhci.io.virtualmachinetemplateversion.vue | 4 ---- pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue | 4 ---- 2 files changed, 8 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue index ea1dc3bb..769113ca 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue @@ -249,10 +249,6 @@ export default { }, validateCloudInit() { - if (this.isWindows) { - return; - } - if (this.userScript) { try { jsyaml.load(this.userScript); diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue index c2c4b17f..d4f4c5ac 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue @@ -427,10 +427,6 @@ export default { }, validateCloudInit() { - if (this.isWindows) { - return; - } - if (this.userScript) { try { jsyaml.load(this.userScript);