From 460dc5e4db95bd3bb8bf3c116b923759df98183c Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 14 Apr 2015 19:56:17 -0700 Subject: [PATCH] Fix errors import --- v2/ansible/plugins/connections/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2/ansible/plugins/connections/__init__.py b/v2/ansible/plugins/connections/__init__.py index 74ff693a331..4461bb6f3de 100644 --- a/v2/ansible/plugins/connections/__init__.py +++ b/v2/ansible/plugins/connections/__init__.py @@ -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)