mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 05:37:19 +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);
|
die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);
|
||||||
|
|
||||||
|
my $storecfg = PVE::Storage::config();
|
||||||
|
|
||||||
my $realcmd = sub {
|
my $realcmd = sub {
|
||||||
my $upid = shift;
|
my $upid = shift;
|
||||||
|
|
||||||
syslog('info', "shutdown VM $vmid: $upid\n");
|
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;
|
return;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user