Author: arkurth
Date: Mon Dec 10 19:26:41 2012
New Revision: 1419686

URL: http://svn.apache.org/viewvc?rev=1419686&view=rev
Log:
Merged revision(s) 1419684 from 
vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm:
VCL-603
Updated Windows.pm::reboot to attempt to perform a hard reset if the computer 
is not responding to SSH.
........

Modified:
    vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm   
(contents, props changed)

Modified: 
vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm
URL: 
http://svn.apache.org/viewvc/vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm?rev=1419686&r1=1419685&r2=1419686&view=diff
==============================================================================
--- vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm 
(original)
+++ vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm 
Mon Dec 10 19:26:41 2012
@@ -3516,13 +3516,13 @@ sub reboot {
        $pre_configure = 1 unless defined $pre_configure;
 
        my $computer_node_name   = $self->data->get_computer_node_name();
-       my $system32_path        = $self->get_system32_path() || return;
+       my $system32_path        = $self->get_system32_path();
 
        my $reboot_start_time = time();
        notify($ERRORS{'DEBUG'}, 0, "reboot will be attempted on 
$computer_node_name");
 
        # Check if computer responds to ssh before preparing for reboot
-       if ($self->wait_for_ssh(0)) {
+       if ($system32_path && $self->wait_for_ssh(0)) {
                # Perform pre-reboot configuration tasks unless $pre_configure 
argument was supplied and is false
                if ($pre_configure) {
                        # Make sure SSH access is enabled from private IP 
addresses
@@ -10984,7 +10984,7 @@ sub check_connection_on_port {
        
        my $management_node_keys        = 
$self->data->get_management_node_keys();
        my $computer_node_name          = $self->data->get_computer_node_name();
-       my $remote_ip                   = 
$self->data->get_reservation_remote_ip();
+       my $remote_ip                         = 
$self->data->get_reservation_remote_ip();
        my $computer_ip_address         = 
$self->data->get_computer_ip_address();
        my $request_state_name          = $self->data->get_request_state_name();
        
@@ -11048,7 +11048,7 @@ sub check_connection_on_port {
  Parameters  : $node,$reote_IP, $identity, $type
  Returns     : 0 or 1 (nochange or updated)
  Description : compares and updates the firewall for rdp port, specfically for 
windows
-                                        Currently only handles windows and 
allows two seperate scopes
+               Currently only handles windows and allows two seperate scopes
 
 =cut
 

Propchange: 
vcl/branches/vcl-2.3-bugfixes/managementnode/lib/VCL/Module/OS/Windows.pm
------------------------------------------------------------------------------
  Merged /vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm:r1419684


Reply via email to