From a178302f73fe15ca0bdad3208ee1f937dd3c12d6 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 21 Jul 2026 05:06:24 +0200 Subject: [PATCH] fix: Creating a VM with no cloud init user data but network data only fails (#1044) Related to: https://github.com/harvester/harvester/issues/11213 Signed-off-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',