You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2015/02/05 21:05:56 UTC
svn commit: r1657679 - /vcl/trunk/managementnode/lib/VCL/Module/State.pm
Author: arkurth
Date: Thu Feb 5 20:05:56 2015
New Revision: 1657679
URL: http://svn.apache.org/r1657679
Log:
VCL-16
Added check in State.pm::state_exit to ensure $request_state_name_new is defined before comparing it.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/State.pm
Modified: vcl/trunk/managementnode/lib/VCL/Module/State.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/State.pm?rev=1657679&r1=1657678&r2=1657679&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/State.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/State.pm Thu Feb 5 20:05:56 2015
@@ -821,7 +821,7 @@ sub state_exit {
$request_state_name_new = 'failed';
}
- if ($request_state_name_new eq 'failed') {
+ if ($request_state_name_new && $request_state_name_new eq 'failed') {
# Child reservations will leave the state of the computer to 'reloading' if they didn't fail
# Need to change state back to available for child reservations which didn't fail
for my $cluster_reservation_id (@reservation_ids) {