mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 23:01:43 +00:00
Change check for better understanding!
Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
This commit is contained in:
parent
e7a43f20a2
commit
fbda796564
@ -4193,7 +4193,7 @@ sub vm_stop {
|
||||
|
||||
eval {
|
||||
if ($shutdown) {
|
||||
if (!$nocheck && $conf->{agent}) {
|
||||
if (defined($conf) && $conf->{agent}) {
|
||||
vm_qmp_command($vmid, { execute => "guest-shutdown" }, $nocheck);
|
||||
} else {
|
||||
vm_qmp_command($vmid, { execute => "system_powerdown" }, $nocheck);
|
||||
|
Loading…
Reference in New Issue
Block a user