Remove get_exception from the remainder of the modules

This commit is contained in:
Toshio Kuratomi 2018-10-17 12:51:18 -07:00
parent 18a088c64e
commit bcd6dbcd65
7 changed files with 18 additions and 40 deletions

View file

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