Fix legacy su handling (bad conditional would not fire at the right time)

(cherry picked from commit aa9941aaf7)
pull/27279/head
Toshio Kuratomi 9 years ago
parent 668266552e
commit 13901eeb70

@ -414,7 +414,7 @@ class PlayContext(Base):
if sudo_pass_name in variables:
setattr(new_info, 'become_pass', variables[sudo_pass_name])
break
if new_info.become_method == 'sudo':
elif new_info.become_method == 'su':
for su_pass_name in MAGIC_VARIABLE_MAPPING.get('su_pass'):
if su_pass_name in variables:
setattr(new_info, 'become_pass', variables[su_pass_name])

Loading…
Cancel
Save