Author: arkurth
Date: Wed Apr 8 18:31:03 2009
New Revision: 763342
URL: http://svn.apache.org/viewvc?rev=763342&view=rev
Log:
Added "ambiguous target" to the regex used to determine if run_scp_command()
was successful. It wasn't catching this.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=763342&r1=763341&r2=763342&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Wed Apr 8 18:31:03 2009
@@ -6934,7 +6934,7 @@
# Check the output for known error messages
# Check the exit status
# scp exits with 0 on success or >0 if an error occurred
- if ($scp_exit_status > 0 || $scp_output =~ /lost
connection|failed|reset by peer|no route to host|no such file/i) {
+ if ($scp_exit_status > 0 || $scp_output =~ /lost
connection|failed|reset by peer|no route to host|no such file|ambiguous
target/i) {
notify($ERRORS{'WARNING'}, 0, "scp error occurred:
attempt $attempts/$max_attempts, command: $scp_command, exit status:
$scp_exit_status, output: $scp_output");
# Temporary fix for problem of nodes using different
ports