Ensure ssh_args in config file is honored

Because the default value is defined for --options parameter, the config file value was always overwritten

Only use --options if config file option is not defined and --options is not the default value
This commit is contained in:
Duncan Ferguson 2014-09-19 23:01:41 +01:00
parent 26e783be1c
commit 8aaea928d7
3 changed files with 34 additions and 20 deletions

View file

@ -307,6 +307,8 @@ sub getopts {
# ? $self->{command_options}->{$acc}->{default}
# : undef;
};
my $accessor_default=$accessor.'_default';
*$accessor_default = sub { return $default; };
}
}