mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Got rid of transfer script name log printing and cosmetic changes
git-svn-id: http://svn.opennebula.org/one/trunk@470 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
4b563c20af
commit
bdf958c57a
@ -71,9 +71,9 @@ class TMPlugin < Hash
|
||||
# arguments provided.
|
||||
cmd=[self[command], *args].join(" ")
|
||||
|
||||
local_command = LocalCommand.run(cmd, logger)
|
||||
local_command = LocalCommand.run(cmd, logger)
|
||||
|
||||
logger.call(local_command.stdout) if logger
|
||||
logger.call(local_command.stdout) if logger
|
||||
|
||||
local_command
|
||||
end
|
||||
@ -149,15 +149,15 @@ class TMScript
|
||||
|
||||
res = [false, "COMMAND not found: #{line.join(" ")}."]
|
||||
else
|
||||
if res.code == 0
|
||||
res = [true, ""]
|
||||
else
|
||||
res = [false, get_error_message(res.stderr)]
|
||||
end
|
||||
if res.code == 0
|
||||
res = [true, ""]
|
||||
else
|
||||
res = [false, get_error_message(res.stderr)]
|
||||
end
|
||||
end
|
||||
|
||||
# do not continue if command failed
|
||||
break res if !res[0]
|
||||
break res if !res[0]
|
||||
}
|
||||
|
||||
result
|
||||
|
@ -49,8 +49,6 @@ class TransferManager < OpenNebulaDriver
|
||||
def action_transfer(number, script_file)
|
||||
script_text=""
|
||||
|
||||
log(number, script_file)
|
||||
|
||||
if File.exist?(script_file)
|
||||
open(script_file) {|f|
|
||||
script_text=f.read
|
||||
|
Loading…
x
Reference in New Issue
Block a user