mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Remove get_exception from the remainder of the modules
This commit is contained in:
parent
18a088c64e
commit
bcd6dbcd65
7 changed files with 18 additions and 40 deletions
|
@ -108,9 +108,10 @@ remote_file:
|
|||
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from xml.etree import ElementTree
|
||||
from ansible.module_utils.basic import get_exception, AnsibleModule
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.network.cloudengine.ce import ce_argument_spec, run_commands, get_nc_config
|
||||
|
||||
try:
|
||||
|
@ -155,7 +156,7 @@ def get_cli_exception(exc=None):
|
|||
|
||||
msg = list()
|
||||
if not exc:
|
||||
exc = get_exception()
|
||||
exc = sys.exc_info[1]
|
||||
if exc:
|
||||
errs = str(exc).split("\r\n")
|
||||
for err in errs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue