diff --git a/lib/ansible/plugins/connection/__init__.py b/lib/ansible/plugins/connection/__init__.py index 5aba9e4d93a..0acbb3ebe3a 100644 --- a/lib/ansible/plugins/connection/__init__.py +++ b/lib/ansible/plugins/connection/__init__.py @@ -94,7 +94,7 @@ class ConnectionBase(with_metaclass(ABCMeta, object)): if self._play_context.become_method in self.become_methods: return True - raise 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_methods) def set_host_overrides(self, host): '''