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

fixed error reporting for unkown become user

This commit is contained in:
Brian Coca 2015-10-01 18:58:16 -04:00
parent 6d6bfbc3d2
commit de2f62bd9e

View file

@ -236,7 +236,7 @@ class Connection(ConnectionBase):
self._display.debug("chunk is: %s" % chunk) self._display.debug("chunk is: %s" % chunk)
if not chunk: if not chunk:
if 'unknown user' in become_output: 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: else:
break break
#raise AnsibleError('ssh connection closed waiting for password prompt') #raise AnsibleError('ssh connection closed waiting for password prompt')