From eb4c0504c80abc598d71cdac8731fc8332a51bca Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 11:09:55 +0800 Subject: [PATCH] fix: Creating a VM with no cloud init user data but network data only fails (#1044) (#1045) Related to: https://github.com/harvester/harvester/issues/11213 (cherry picked from commit a178302f73fe15ca0bdad3208ee1f937dd3c12d6) Signed-off-by: Volker Theile Co-authored-by: Volker Theile --- pkg/harvester/mixins/harvester-vm/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/mixins/harvester-vm/index.js b/pkg/harvester/mixins/harvester-vm/index.js index fce3fc50..9e468bf8 100644 --- a/pkg/harvester/mixins/harvester-vm/index.js +++ b/pkg/harvester/mixins/harvester-vm/index.js @@ -914,7 +914,7 @@ export default { } } - if (!disks.find( (D) => D.name === 'cloudinitdisk') && (this.userData || this.networkData)) { + if (!disks.find( (D) => D.name === 'cloudinitdisk') && (this.userData || this.networkScript)) { if (!this.isWindows) { disks.push({ name: 'cloudinitdisk',