mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
6dbd2b8359
commit
195324a68e
@ -1599,7 +1599,11 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
|
||||
options[:ssh_opts].nil? ? opts = '' : opts = options[:ssh_opts]
|
||||
|
||||
system("ssh #{opts} #{login}@#{ip} -p #{port} #{cmd}")
|
||||
if opts.empty?
|
||||
system(*%W[ssh #{login}@#{ip} -p #{port} #{cmd}])
|
||||
else
|
||||
system(*%W[ssh #{opts} #{login}@#{ip} -p #{port} #{cmd}])
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:disable Style/SpecialGlobalVars
|
||||
|
Loading…
x
Reference in New Issue
Block a user