mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Fix behaviour when no cluster command defined
Also tidyup output to 'cssh -L' when no external clusters defined
This commit is contained in:
parent
b374754129
commit
f88353d3dd
6 changed files with 35 additions and 9 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue