Calling check_running() with $nocheck=1 is equivalent to using vm_running_locally().
Signed-off-by: Fiona Ebner <[email protected]> --- src/PVE/CLI/qm.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PVE/CLI/qm.pm b/src/PVE/CLI/qm.pm index bdae9641..2b42c3b4 100755 --- a/src/PVE/CLI/qm.pm +++ b/src/PVE/CLI/qm.pm @@ -465,9 +465,9 @@ __PACKAGE__->register_method({ last; } elsif ($line =~ /^resume (\d+)$/) { my $vmid = $1; - # check_running and vm_resume with nocheck, since local node - # might not have processed config move/rename yet - if (PVE::QemuServer::check_running($vmid, 1)) { + if (PVE::QemuServer::Helpers::vm_running_locally($vmid)) { + # vm_resume with nocheck, since local node might not have processed config + # move/rename yet eval { PVE::QemuServer::RunState::vm_resume($vmid, 1, 1); }; if ($@) { $tunnel_write->("ERR: resume failed - $@"); -- 2.47.3
