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 a178302f73)

Signed-off-by: Volker Theile <vtheile@suse.com>
Co-authored-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
mergify[bot]
2026-07-21 11:09:55 +08:00
committed by GitHub
co-authored by Volker Theile
parent 82e7b0da19
commit eb4c0504c8
+1 -1
View File
@@ -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) { if (!this.isWindows) {
disks.push({ disks.push({
name: 'cloudinitdisk', name: 'cloudinitdisk',