From db6d72a759252ff560f335534c8f8557ac4e4c3f Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 19 Oct 2017 11:04:17 +0200 Subject: [PATCH] B #5465: Fix history record check while getting VNC port (cherry picked from commit 04b557188fdf1dab72c46e8d94a9e1da94dde0c5) --- src/rm/RequestManagerVirtualMachine.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rm/RequestManagerVirtualMachine.cc b/src/rm/RequestManagerVirtualMachine.cc index 60ae79e238..885eb31980 100644 --- a/src/rm/RequestManagerVirtualMachine.cc +++ b/src/rm/RequestManagerVirtualMachine.cc @@ -682,8 +682,7 @@ int set_vnc_port(VirtualMachine *vm, int cluster_id, RequestAttributes& att) { return 0; } - else if (vm->hasPreviousHistory() && - vm->get_previous_action() == History::STOP_ACTION) + else if (vm->hasHistory() && vm->get_action()==History::STOP_ACTION) { return 0; }