From 2ddd3d2e46bf0836f03b6e187fc1f606b9fa963e Mon Sep 17 00:00:00 2001 From: Derumier Alexandre Date: Mon, 10 Oct 2011 16:46:57 +0200 Subject: [PATCH] add a hook to call vm_deviceadd when the disk in config file are added Signed-off-by: Derumier Alexandre --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 80ab7c70..70e3979f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1302,6 +1302,7 @@ sub create_disks { die "image '$path' does not exists\n"; } } + PVE::QemuServer::vm_deviceadd ($storecfg,$vmid,$ds, $disk); }); };