mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
minor fixes for return code handling adding a slash to the backup lib script path generation
This commit is contained in:
parent
52c97b5b6b
commit
51d5a95a95
@ -113,8 +113,8 @@ rc = TransferManager::Action.ssh('make_dst_path',
|
||||
:host => rsync_host,
|
||||
:cmds => "mkdir -p #{backup_path}")
|
||||
|
||||
if rc.code != 0
|
||||
exit rc.code
|
||||
if rc != 0
|
||||
exit rc
|
||||
end
|
||||
|
||||
cmd = "rsync #{args} #{vm_dir}/ #{rsync_user}@#{rsync_host}:#{backup_path}"
|
||||
|
@ -120,7 +120,7 @@ module TransferManager
|
||||
NAME = "#{name}"
|
||||
TYPE = "#{type}"
|
||||
|
||||
PATH = "#{@base_url}#{f}"
|
||||
PATH = "#{@base_url}/#{f}"
|
||||
FROM_BACKUP_DS = "#{@ds_id}"
|
||||
EOS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user