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

Don't empty out become_pass. See #11169

This commit is contained in:
Matt Martz 2015-06-05 12:02:35 -05:00
parent 04f4f77d91
commit 6bc2ea1f2b

View file

@ -109,7 +109,8 @@ class ConnectionInformation:
self.become_method = play.become_method
if play.become_user:
self.become_user = play.become_user
self.become_pass = play.become_pass
if play.become_pass:
self.become_pass = play.become_pass
# non connection related
self.no_log = play.no_log
@ -132,7 +133,6 @@ class ConnectionInformation:
self.become = options.become
self.become_method = options.become_method
self.become_user = options.become_user
self.become_pass = ''
# general flags (should we move out?)
if options.verbosity: