This commit is contained in:
GGabriele 2016-09-02 18:58:06 +02:00 committed by Matt Clay
parent aabab30a4f
commit c902f2da14

View file

@ -893,8 +893,9 @@ def main():
try: try:
transfer_file(module, dest) transfer_file(module, dest)
transfer_status = 'Sent' transfer_status = 'Sent'
except Exception as e: except ShellError:
module.fail_json(msg=str(e)) clie = get_exception()
module.fail_json(msg=str(clie))
if remote_file is None: if remote_file is None:
remote_file = os.path.basename(local_file) remote_file = os.path.basename(local_file)