mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix errors import
This commit is contained in:
parent
719d01067e
commit
460dc5e4db
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError
|
||||
|
||||
# FIXME: this object should be created upfront and passed through
|
||||
# the entire chain of calls to here, as there are other things
|
||||
|
@ -48,4 +49,4 @@ class ConnectionBase:
|
|||
if become_method in self.__class__.become_methods:
|
||||
return True
|
||||
|
||||
raise errors.AnsibleError("Internal Error: this connection module does not support running commands via %s" % become_method)
|
||||
raise AnsibleError("Internal Error: this connection module does not support running commands via %s" % become_method)
|
||||
|
|
Loading…
Reference in a new issue