mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Remove get_exception from the remainder of the modules
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user