Commit 7a4266e9 by Toshio Kuratomi

One more try -- the error message should reference the become method

requested via play context
parent 696cf32d
......@@ -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_methods)
raise AnsibleError("Internal Error: this connection module does not support running commands via %s" % self._play_context.become_method)
def set_host_overrides(self, host):
'''
......
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