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".
pull/18777/head
bencomp 8 years ago committed by Matt Clay
parent 8e97539e20
commit d25ba6a30a

@ -34,7 +34,7 @@ version_added: "2.0"
short_description: return a list of files based on specific criteria short_description: return a list of files based on specific criteria
requirements: [] requirements: []
description: 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: options:
age: age:
required: false required: false
@ -139,13 +139,13 @@ files:
returned: success returned: success
type: list of dictionaries type: list of dictionaries
sample: [ sample: [
{ path="/var/tmp/test1", { path: "/var/tmp/test1",
mode=0644, mode: "0644",
..., "...": "...",
checksum=16fac7be61a6e4591a33ef4b729c5c3302307523 checksum: 16fac7be61a6e4591a33ef4b729c5c3302307523
}, },
{ path="/var/tmp/test2", { path: "/var/tmp/test2",
... "...": "..."
}, },
] ]
matched: matched:

Loading…
Cancel
Save