From aa07da21a393a2bf4c2355005b7a8162d88ced3a Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 23 Aug 2018 13:22:54 -0500 Subject: [PATCH] Bump sudo/su deprecation to 2.9 (#44581) --- lib/ansible/cli/__init__.py | 2 +- lib/ansible/playbook/become.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 5ab83601b89..86d248098b8 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -344,7 +344,7 @@ class CLI(with_metaclass(ABCMeta, object)): self.options.become_user = self.options.become_user or self.options.sudo_user or self.options.su_user or C.DEFAULT_BECOME_USER def _dep(which): - display.deprecated('The %s command line option has been deprecated in favor of the "become" command line arguments' % which, '2.6') + display.deprecated('The %s command line option has been deprecated in favor of the "become" command line arguments' % which, '2.9') if self.options.become: pass diff --git a/lib/ansible/playbook/become.py b/lib/ansible/playbook/become.py index e102dc8d3ab..8f607176ad1 100644 --- a/lib/ansible/playbook/become.py +++ b/lib/ansible/playbook/become.py @@ -78,7 +78,7 @@ class Become: 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)", '2.6') + display.deprecated("Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default)", '2.9') elif 'su' in ds or 'su_user' in ds: ds['become_method'] = 'su' @@ -90,6 +90,6 @@ class Become: 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)", '2.6') + display.deprecated("Instead of su/su_user, use become/become_user and set become_method to 'su' (default is sudo)", '2.9') return ds