bug: fixes update functionality

This commit is contained in:
Ruben S. Montero committed 2011-06-18 02:11:56 +02:00
1 parent b796817b97
commit 778e17eb65
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -198,8 +198,10 @@ private
MAGIC_RC = 42
def self.update_remotes(host, remote_dir, logger=nil)
log("Remote worker node files not found")
log("Updating remotes")
if logger != nil
logger.call("Remote worker node files not found")
logger.call("Updating remotes")
end
#recreate remote dir structure
SSHCommand.run("mkdir -p #{remote_dir}",host,logger)
+1 -1
View File
@@ -149,7 +149,7 @@ class OpenNebulaDriver < ActionManager
if action_is_local? aname
local_action(command, id, aname)
else
remotes_action(command, id, host, aname, @remote_scripts_path,
remotes_action(command, id, host, aname, @remote_scripts_base_path,
options[:stdin])
end
end