leftover from porting become to v2 that's unused

The set_become_default() function is not needed.  All this time, if it
was called it would try to set a value on a passed by value variable
(meaning that it had no effect after returning to the caller).  Since
become has been working in v2, this code is not needed.  Removing.
This commit is contained in:
Toshio Kuratomi 2017-07-24 08:04:41 -07:00
parent 50736c5c41
commit f22c04fa1e
2 changed files with 0 additions and 12 deletions

View file

@ -455,9 +455,6 @@ class PlayContext(Base):
if new_info.no_log is None:
new_info.no_log = C.DEFAULT_NO_LOG
# set become defaults if not previouslly set
task.set_become_defaults(new_info.become, new_info.become_method, new_info.become_user)
if task.always_run:
display.deprecated("always_run is deprecated. Use check_mode = no instead.", version="2.4", removed=False)
new_info.check_mode = False