1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #: SSH options in onevm ssh not splitted (#1460)

Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
This commit is contained in:
Ricardo Diaz 2021-09-15 17:42:47 +02:00 committed by GitHub
parent 2f8e33ed3d
commit fc285cc9c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -715,7 +715,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
if opts.empty?
exec(*%W[ssh #{login}@#{ip} -p #{port} #{cmd}])
else
exec(*%W[ssh #{opts} #{login}@#{ip} -p #{port} #{cmd}])
exec('ssh', *opts.split, *%W[#{login}@#{ip} -p #{port} #{cmd}])
end
end