Fixes #23890 Remove idle ShellError exception and get_exception() method from nxos modules (#23947)

Remove idle ShellError exception and get_exception() method from nxos modules
This commit is contained in:
Trishna Guha 2017-04-28 10:42:15 +05:30 committed by GitHub
commit bc22223d63
15 changed files with 29 additions and 91 deletions

View file

@ -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)