From e8d93c99a6b6346981043682750178bf6f539622 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Fri, 8 Mar 2019 11:14:18 -0500 Subject: [PATCH] Add the ksu, machinectl, and sesu methods to the builtin list of become methods --- awx/main/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/constants.py b/awx/main/constants.py index 637b5d7646..99b2f6301e 100644 --- a/awx/main/constants.py +++ b/awx/main/constants.py @@ -16,7 +16,8 @@ SCHEDULEABLE_PROVIDERS = CLOUD_PROVIDERS + ('custom', 'scm',) PRIVILEGE_ESCALATION_METHODS = [ ('sudo', _('Sudo')), ('su', _('Su')), ('pbrun', _('Pbrun')), ('pfexec', _('Pfexec')), ('dzdo', _('DZDO')), ('pmrun', _('Pmrun')), ('runas', _('Runas')), - ('enable', _('Enable')), ('doas', _('Doas')), + ('enable', _('Enable')), ('doas', _('Doas')), ('ksu', _('Ksu')), + ('machinectl', _('Machinectl')), ('sesu', _('Sesu')), ] CHOICES_PRIVILEGE_ESCALATION_METHODS = [('', _('None'))] + PRIVILEGE_ESCALATION_METHODS ANSI_SGR_PATTERN = re.compile(r'\x1b\[[0-9;]*m')