Fix behaviour when no cluster command defined

Also tidyup output to 'cssh -L' when no external clusters defined
This commit is contained in:
Duncan Ferguson 2014-08-10 10:36:22 +01:00
parent b374754129
commit f88353d3dd
6 changed files with 35 additions and 9 deletions

View file

@ -69,6 +69,11 @@ sub _run_external_clusters {
my $external_command = $self->parent->config->{external_cluster_command};
if(!$external_command || ! -x $external_command) {
$self->debug( 1, 'Cannot run external cluster command: ', $external_command || '');
return;
}
$self->debug( 3, 'Running tags through external command' );
$self->debug( 4, 'External command: ', $external_command );
$self->debug( 3, 'Args ', join( ',', @args ) );