dest lives in 4 different places depending on exeuction type (#62444) (#63283)

(cherry picked from commit d4ad541eee)
pull/64756/head
Ganesh Nalawade 5 years ago committed by Matt Davis
parent 040247097c
commit 2822744c68

@ -0,0 +1,2 @@
bugfixes:
- Fix for backup option dest key for network modules (https://github.com/ansible/ansible/issues/57131).

@ -103,7 +103,7 @@ class ActionModule(_ActionModule):
result['msg'] = copy_result.get('msg') result['msg'] = copy_result.get('msg')
return return
result['backup_path'] = copy_result['dest'] result['backup_path'] = dest
if copy_result.get('changed', False): if copy_result.get('changed', False):
result['changed'] = copy_result['changed'] result['changed'] = copy_result['changed']

Loading…
Cancel
Save