[pve-devel] [PATCH 2/2] create_vm : check_volume_access : find $path is undef for archive volid
Alexandre Derumier
aderumier at odiso.com
Wed Sep 25 10:28:42 CEST 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/API2/Qemu.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index dad9654..0263cfa 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -373,6 +373,7 @@ __PACKAGE__->register_method({
if $rpcenv->{type} ne 'cli';
} else {
my $path = $rpcenv->check_volume_access($authuser, $storecfg, $vmid, $archive);
+ $path = PVE::Storage::path($storecfg, $archive) if !$path;
PVE::Storage::activate_volumes($storecfg, [ $archive ])
if PVE::Storage::parse_volume_id ($archive, 1);
--
1.7.10.4
More information about the pve-devel
mailing list