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: if self._play_context.become_method in self.become_methods:
return True 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): def set_host_overrides(self, host):
''' '''