You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2015/01/30 19:54:52 UTC

svn commit: r1656093 - /vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm

Author: fapeeler
Date: Fri Jan 30 18:54:52 2015
New Revision: 1656093

URL: http://svn.apache.org/r1656093
Log:
VCL-737

legacy code
removed variables for wait_for_reboot call
the previous value was too low and caused unwanted warnings.
The wait_for_reboot has acceptable variables set if not passed to handle the process.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm?rev=1656093&r1=1656092&r2=1656093&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm Fri Jan 30 18:54:52 2015
@@ -2469,8 +2469,7 @@ sub reboot {
 		return 1;
 	}
 	
-	my $wait_attempt_limit = 2;
-	if ($self->wait_for_reboot($wait_attempt_limit)) {
+	if ($self->wait_for_reboot()) {
 		# Reboot was successful, calculate how long reboot took
 		my $reboot_end_time = time();
 		my $reboot_duration = ($reboot_end_time - $reboot_start_time);
@@ -2478,7 +2477,7 @@ sub reboot {
 		return 1;
 	}
 	else {
-		notify($ERRORS{'WARNING'}, 0, "reboot failed on $computer_node_name, made $wait_attempt_limit attempts");
+		notify($ERRORS{'WARNING'}, 0, "reboot failed on $computer_node_name, made default wait_attempt_limit attempts");
 		return 0;
 	}