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:
parent
70ff023ee4
commit
9fdf8f48c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue