From de2f62bd9e6a56546517777cf87a8826737faade Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 1 Oct 2015 18:58:16 -0400 Subject: [PATCH] fixed error reporting for unkown become user --- lib/ansible/plugins/connection/paramiko_ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 2199bcf6473..5499743d9e5 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -236,7 +236,7 @@ class Connection(ConnectionBase): self._display.debug("chunk is: %s" % chunk) if not chunk: if 'unknown user' in become_output: - raise AnsibleError( 'user %s does not exist' % become_user) + raise AnsibleError( 'user %s does not exist' % self._play_context.become_user) else: break #raise AnsibleError('ssh connection closed waiting for password prompt')