Ensure ssh_args is unset if config file line is empty

If the config file has 'ssh_args=', ensure the options are removed and
not set as the default specified in the getopts code
This commit is contained in:
Duncan Ferguson 2017-12-23 22:45:28 +00:00
parent 37ce2b8a0d
commit 4a72b1cab3
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
4.12_01 0000-00-00 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Ensure ssh_args is keep unset if it is emptied in the configuration file
4.12 2017-12-23 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Fix 'undefined value' error

View file

@ -3,7 +3,7 @@ package App::ClusterSSH;
use 5.008.004;
use warnings;
use strict;
use version; our $VERSION = version->new('4.12');
use version; our $VERSION = version->new('4.12_01');
use Carp qw/cluck :DEFAULT/;
@ -2140,7 +2140,7 @@ sub run {
# options is not the default value otherwise the default options
# value is used instead of the config file
if ( $self->config->{comms} eq 'ssh' ) {
if ( $self->config->{ssh_args} ) {
if ( defined $self->config->{ssh_args} ) {
if ( $self->options->options
&& $self->options->options ne
$self->options->options_default )