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:
parent
696cf32d63
commit
7a4266e9c5
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue