add a hook to call vm_deviceadd when the disk in config file are added

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
This commit is contained in:
Derumier Alexandre 2011-10-10 16:46:57 +02:00 committed by Dietmar Maurer
parent 873c2d698f
commit 2ddd3d2e46

View File

@ -1302,6 +1302,7 @@ sub create_disks {
die "image '$path' does not exists\n";
}
}
PVE::QemuServer::vm_deviceadd ($storecfg,$vmid,$ds, $disk);
});
};