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
|
@ -233,13 +233,9 @@ def main():
|
|||
True in existing.values()) or restart):
|
||||
candidate = CustomNetworkConfig(indent=3)
|
||||
invoke('get_commands', module, existing, proposed_args, candidate)
|
||||
response = load_config(module, candidate)
|
||||
result.update(response)
|
||||
|
||||
try:
|
||||
response = load_config(module, candidate)
|
||||
result.update(response)
|
||||
except ShellError:
|
||||
exc = get_exception()
|
||||
module.fail_json(msg=str(exc))
|
||||
else:
|
||||
result['updates'] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue