1
0
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:
Javier Fontán Muiños 2009-04-15 13:58:47 +00:00
parent 4b563c20af
commit bdf958c57a
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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