lib/rundock/builder/backend_builder.rb in rundock-1.2.0 vs lib/rundock/builder/backend_builder.rb in rundock-1.2.1
- old
+ new
@@ -39,9 +39,10 @@
# replace default ssh options if exists
@options.keys.select { |o| o.to_s =~ /(\w+)_ssh_default$/ }.each do |oo|
# no use default ssh options if local
# set unless scenario file and cli options specified and not localhost
next if localhost?
+
opt = oo.to_s.gsub(/_ssh_default/, '').to_sym
@node_info[@nodename.to_sym][:ssh_opts][opt] = @options[oo] if !@node_info[@nodename.to_sym][:ssh_opts][opt] && !@options[opt]
end
# replace cli ssh options if exists