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 <vtheile@suse.com>
This commit is contained in:
Volker Theile 2026-07-21 05:06:24 +02:00 committed by GitHub
parent d376bfb3a5
commit a178302f73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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',