From 0c57734819853d410038d175afbe3f8529690fd4 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 29 Aug 2022 11:21:37 -0400 Subject: [PATCH] until is also implicit (#78632) The until keyword templating is also implicit, this will now reflect in the docs --- changelogs/fragments/until_also_implicit.yml | 2 ++ lib/ansible/cli/doc.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/until_also_implicit.yml diff --git a/changelogs/fragments/until_also_implicit.yml b/changelogs/fragments/until_also_implicit.yml new file mode 100644 index 00000000000..35c003b271e --- /dev/null +++ b/changelogs/fragments/until_also_implicit.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-doc will now also display until as an 'implicit' templating keyword. diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 5471a756aa0..d94815faa1d 100755 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -603,7 +603,9 @@ class DocCLI(CLI, RoleMixin): kdata['type'] = getattr(fa, 'isa', 'string') - if keyword.endswith('when'): + if keyword.endswith('when') or keyword in ('until',): + # TODO: make this a field attribute property, + # would also helps with the warnings on {{}} stacking kdata['template'] = 'implicit' elif getattr(fa, 'static'): kdata['template'] = 'static'