mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Remove idle ShellError exception and get_exception() method from nxos modules
This commit is contained in:
parent
a13d89da68
commit
bc22223d63
15 changed files with 29 additions and 91 deletions
|
@ -232,12 +232,8 @@ def main():
|
|||
file_exists = True
|
||||
|
||||
if not module.check_mode and not file_exists:
|
||||
try:
|
||||
transfer_file(module, dest)
|
||||
transfer_status = 'Sent'
|
||||
except ShellError:
|
||||
clie = get_exception()
|
||||
module.fail_json(msg=str(clie))
|
||||
transfer_file(module, dest)
|
||||
transfer_status = 'Sent'
|
||||
|
||||
if remote_file is None:
|
||||
remote_file = os.path.basename(local_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue