From ace28d1c0e62a9ca464d724776fe87d5b1583980 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:46:27 +0000 Subject: [PATCH] fix(vm): add isWindows guard to validateCloudInit in template version --- .../edit/harvesterhci.io.virtualmachinetemplateversion.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue index 769113ca..ea1dc3bb 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue @@ -249,6 +249,10 @@ export default { }, validateCloudInit() { + if (this.isWindows) { + return; + } + if (this.userScript) { try { jsyaml.load(this.userScript);