1
0
Fork 0
forked from infra/ansible

updates-uptimes: Accept more values for --ansi yes/no.

Signed-off-by: James Antill <james@and.org>
This commit is contained in:
James Antill 2026-02-25 11:53:12 -05:00
commit 9fdf8f48c9

View file

@ -1848,9 +1848,9 @@ def _cmd_host(args):
def _cmdline_arg_ansi(oval):
val = oval.lower()
if val in ("yes", "on", "1", "always"):
if val in ("true", "y", "yes", "on", "1", "always"):
return True
if val in ("no", "off", "0", "never"):
if val in ("false", "n", "no", "off", "0", "never"):
return False
if val in ("automatic", "?", "tty", "auto"):
return None