Fix try/except
This commit is contained in:
parent
e392417232
commit
aabab30a4f
1 changed files with 3 additions and 4 deletions
|
@ -855,10 +855,9 @@ def transfer_file(module, dest):
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg='Could not transfer file. There was an error '
|
module.fail_json(msg='Could not transfer file. There was an error '
|
||||||
'during transfer. Please make sure remote '
|
'during transfer. Please make sure remote '
|
||||||
'permissions are set.', temp_size=temp_size, file_size=file_size)
|
'permissions are set.', temp_size=temp_size,
|
||||||
finally:
|
file_size=file_size)
|
||||||
scp.close()
|
scp.close()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue