1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5465: Fix history record check while getting VNC port

(cherry picked from commit 04b557188fdf1dab72c46e8d94a9e1da94dde0c5)
This commit is contained in:
Ruben S. Montero 2017-10-19 11:04:17 +02:00
parent ff731e8e5d
commit db6d72a759

View File

@ -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;
}