From 863340ee26cd46c3cb9fca9871dd86130557c965 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 23 Apr 2019 15:35:11 -0500 Subject: [PATCH] --become-method should not be restricted (#55670) --- lib/ansible/cli/arguments/option_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/arguments/option_helpers.py b/lib/ansible/cli/arguments/option_helpers.py index dbde5fadab..7ea478c5b0 100644 --- a/lib/ansible/cli/arguments/option_helpers.py +++ b/lib/ansible/cli/arguments/option_helpers.py @@ -298,7 +298,7 @@ def add_runas_options(parser): # consolidated privilege escalation (become) runas_group.add_argument("-b", "--become", default=C.DEFAULT_BECOME, action="store_true", dest='become', help="run operations with become (does not imply password prompting)") - runas_group.add_argument('--become-method', dest='become_method', default=C.DEFAULT_BECOME_METHOD, choices=C.BECOME_METHODS, + runas_group.add_argument('--become-method', dest='become_method', default=C.DEFAULT_BECOME_METHOD, help="privilege escalation method to use (default=%(default)s), use " "`ansible-doc -t become -l` to list valid choices.") runas_group.add_argument('--become-user', default=None, dest='become_user', type=str,