From d25ba6a30a0f3e3b4e44c1b91b54f6990cac9c39 Mon Sep 17 00:00:00 2001 From: bencomp Date: Sun, 16 Oct 2016 21:52:34 +0200 Subject: [PATCH] Make find return sample a YAML dict In the description of the find module return value, the sample dict has its key=value strings converted to key=value: None in the web documentation. This commit updates the sample output to a 'real' dict. Minor additional edit in the description: "return list *of* files". --- lib/ansible/modules/files/find.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/files/find.py b/lib/ansible/modules/files/find.py index d48e52ed05..9eae9e1bcc 100644 --- a/lib/ansible/modules/files/find.py +++ b/lib/ansible/modules/files/find.py @@ -34,7 +34,7 @@ version_added: "2.0" short_description: return a list of files based on specific criteria requirements: [] description: - - Return a list files based on specific criteria. Multiple criteria are AND'd together. + - Return a list of files based on specific criteria. Multiple criteria are AND'd together. options: age: required: false @@ -139,13 +139,13 @@ files: returned: success type: list of dictionaries sample: [ - { path="/var/tmp/test1", - mode=0644, - ..., - checksum=16fac7be61a6e4591a33ef4b729c5c3302307523 + { path: "/var/tmp/test1", + mode: "0644", + "...": "...", + checksum: 16fac7be61a6e4591a33ef4b729c5c3302307523 }, - { path="/var/tmp/test2", - ... + { path: "/var/tmp/test2", + "...": "..." }, ] matched: