B #2420: tm_mad does not work using disk with brackets (#2425)

(cherry picked from commit 00d800a09b)
This commit is contained in:
Sergio Semedi Barranco authored and Tino Vazquez committed 2018-10-08 17:25:54 +02:00
1 parent abf89c6a95
commit 7b21aeb2de
1 file changed
+2 -1
+2 -1
View File
@@ -31,6 +31,7 @@ end
$: << RUBY_LIB_LOCATION
require 'pp'
require 'shellwords'
require 'OpenNebulaDriver'
require 'CommandManager'
require 'getoptlong'
@@ -98,7 +99,7 @@ class TransferManagerDriver < OpenNebulaDriver
def do_transfer_action(id, command)
cmd = command[0].downcase
tm = command[1]
args = command[2..-1].join(" ")
args = command[2..-1].map{|e| Shellwords.escape(e)}.join(" ")
if not @types.include?(tm)
return RESULT[:failure], "Transfer Driver '#{tm}' not available"