mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
development: Fix "scp: error: unexpected filename: ." (#2959)
This commit is contained in:
parent
8693ac5cfe
commit
c55b6c1ed6
@ -73,6 +73,17 @@ class InformationManagerDriver < OpenNebulaDriver
|
||||
|
||||
if !action_is_local?(:MONITOR)
|
||||
if do_update == "1" || @options[:force_copy]
|
||||
# Recreate dir for remote scripts
|
||||
mkdir_cmd = "mkdir -p #{@remote_scripts_base_path}"
|
||||
|
||||
cmd = SSHCommand.run(mkdir_cmd, host, log_method(number))
|
||||
|
||||
if cmd.code!=0
|
||||
send_message('MONITOR', RESULT[:failure], number,
|
||||
'Could not update remotes')
|
||||
return
|
||||
end
|
||||
|
||||
# Use SCP to sync:
|
||||
sync_cmd = "scp -r #{@local_scripts_base_path}/* " \
|
||||
"#{host}:#{@remote_scripts_base_path}"
|
||||
|
Loading…
Reference in New Issue
Block a user