mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Merge pull request #16422 from privateip/network
bug fix changes Config class in network to only raise exceptions
This commit is contained in:
@@ -116,11 +116,6 @@ class Config(object):
|
||||
except AttributeError:
|
||||
exc = get_exception()
|
||||
raise NetworkError('undefined method "%s"' % method.__name__, exc=str(exc))
|
||||
except NetworkError:
|
||||
if raise_exc:
|
||||
raise
|
||||
exc = get_exception()
|
||||
self.fail_json(msg=exc.message, **exc.kwargs)
|
||||
except NotImplementedError:
|
||||
raise NetworkError('method not supported "%s"' % method.__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user