From: Wolfgang Bumiller <w.bumil...@proxmox.com>

Signed-off-by: Alexandre Derumier <aderum...@odiso.com>
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8fb47b5..6aa0128 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6696,7 +6696,7 @@ sub generate_cloudinitconfig {
 
        my ($storeid, $volname) = PVE::Storage::parse_volume_id($drive->{file}, 
1);
 
-       return if $volname !~ m/vm-$vmid-cloudinit/;
+       return if !$volname || $volname !~ m/vm-$vmid-cloudinit/;
 
        my $path = "/tmp/cloudinit/$vmid";
 
-- 
2.11.0

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to