Skip to content

Commit

Permalink
schedule sudo/su removal
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Apr 25, 2017
1 parent 3959597 commit 1a0b94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/playbook/become.py
Expand Up @@ -77,7 +77,7 @@ def _preprocess_data_become(self, ds):
ds['become_user'] = ds['sudo_user']
del ds['sudo_user']

display.deprecated("Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default)")
display.deprecated("Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default)", '2.6')

elif 'su' in ds or 'su_user' in ds:
ds['become_method'] = 'su'
Expand All @@ -89,7 +89,7 @@ def _preprocess_data_become(self, ds):
ds['become_user'] = ds['su_user']
del ds['su_user']

display.deprecated("Instead of su/su_user, use become/become_user and set become_method to 'su' (default is sudo)")
display.deprecated("Instead of su/su_user, use become/become_user and set become_method to 'su' (default is sudo)", '2.6')

return ds

Expand Down

0 comments on commit 1a0b94f

Please sign in to comment.