1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

requested via play context
This commit is contained in:
Toshio Kuratomi 2015-09-28 11:27:24 -07:00
parent 696cf32d63
commit 7a4266e9c5

View file

@ -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):
'''