mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 17:28:24 +00:00
fix vm_shutdown bug - pass storecfg parameter
This commit is contained in:
parent
4bb5a31707
commit
02d07cf579
@ -1014,12 +1014,14 @@ __PACKAGE__->register_method({
|
||||
|
||||
die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
|
||||
my $realcmd = sub {
|
||||
my $upid = shift;
|
||||
|
||||
syslog('info', "shutdown VM $vmid: $upid\n");
|
||||
|
||||
PVE::QemuServer::vm_shutdown($vmid, $skiplock, $param->{timeout});
|
||||
PVE::QemuServer::vm_shutdown($storecfg, $vmid, $skiplock, $param->{timeout});
|
||||
|
||||
return;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user