Add status_code & failed:false when status==200 (#21457)

* Add status_code & failed:false when status==200

* remove failed=false, it's broking tests
pull/21502/head
Benjamin JOLIVOT 8 years ago committed by Toshio Kuratomi
parent eec88b63c2
commit 9baf95bcc4

@ -457,7 +457,7 @@ def main():
res_args = dict( res_args = dict(
url = url, dest = dest, src = tmpsrc, md5sum = md5sum, checksum_src = checksum_src, url = url, dest = dest, src = tmpsrc, md5sum = md5sum, checksum_src = checksum_src,
checksum_dest = checksum_dest, changed = changed, msg = info.get('msg', '') checksum_dest = checksum_dest, changed = changed, msg = info.get('msg', ''), status_code=info.get('status','')
) )
if backup_file: if backup_file:
res_args['backup_file'] = backup_file res_args['backup_file'] = backup_file

Loading…
Cancel
Save