Commit 460dc5e4 by Toshio Kuratomi

Fix errors import

parent 719d0106
...@@ -20,6 +20,7 @@ from __future__ import (absolute_import, division, print_function) ...@@ -20,6 +20,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
from ansible import constants as C from ansible import constants as C
from ansible.errors import AnsibleError
# FIXME: this object should be created upfront and passed through # FIXME: this object should be created upfront and passed through
# the entire chain of calls to here, as there are other things # the entire chain of calls to here, as there are other things
...@@ -48,4 +49,4 @@ class ConnectionBase: ...@@ -48,4 +49,4 @@ class ConnectionBase:
if become_method in self.__class__.become_methods: if become_method in self.__class__.become_methods:
return True 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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment