From b3a3328ea61b060c015c628b2933a9e228759ad5 Mon Sep 17 00:00:00 2001 From: John R Barker Date: Fri, 22 Feb 2019 10:23:15 +0000 Subject: [PATCH] Better document the return type of the fileglob filter (#52801) https://github.com/ansible/ansible/pull/44986 Fixes #33465 Thanks to DaveB93 for the suggestion. --- lib/ansible/plugins/lookup/fileglob.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/lookup/fileglob.py b/lib/ansible/plugins/lookup/fileglob.py index 3f988d99916..67a7c07033a 100644 --- a/lib/ansible/plugins/lookup/fileglob.py +++ b/lib/ansible/plugins/lookup/fileglob.py @@ -20,6 +20,7 @@ DOCUMENTATION = """ - Patterns are only supported on files, not directory/paths. - Matching is against local system files on the Ansible controller. To iterate a list of files on a remote node, use the M(find) module. + - Returns a string list of paths joined by commas, or an empty list if no files match. For a 'true list' pass C(wantlist=True) to the lookup. """ EXAMPLES = """