1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

F #5516: minor rsync fixes (#2331)

minor fixes for return code handling
adding a slash to the backup lib script path generation
This commit is contained in:
onenhansen 2022-11-03 03:34:47 -06:00 committed by GitHub
parent 52c97b5b6b
commit 51d5a95a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -120,7 +120,7 @@ module TransferManager
NAME = "#{name}"
TYPE = "#{type}"
PATH = "#{@base_url}#{f}"
PATH = "#{@base_url}/#{f}"
FROM_BACKUP_DS = "#{@ds_id}"
EOS