Read $HOME/.clusterssh/clusters

Make sure the new location fo the clusters file is read
This commit is contained in:
Duncan Ferguson 2012-07-20 10:08:35 +01:00
parent a0cb18da7b
commit a6169dcacb

View file

@ -26,7 +26,7 @@ sub new {
sub get_clusters { sub get_clusters {
my ( $self, @files ) = @_; my ( $self, @files ) = @_;
for my $file ( '/etc/clusters', @files ) { for my $file ( '/etc/clusters', $ENV{HOME}.'/.clusterssh/clusters',@files ) {
$self->debug(3, 'Loading in config from: ', $file); $self->debug(3, 'Loading in config from: ', $file);
$self->read_cluster_file($file); $self->read_cluster_file($file);
} }