Add an example of complex return argument (#28610)

pull/30542/merge
Monty Taylor 7 years ago committed by John R Barker
parent 7596826ed0
commit 700a032bf1

@ -335,8 +335,30 @@ Example::
returned: when supported returned: when supported
type: string type: string
sample: 2a5aeecc61dc98c4d780b14b330e3282 sample: 2a5aeecc61dc98c4d780b14b330e3282
... '''
RETURN = '''
packages:
description: Information about package requirements
returned: On success
type: complex
contains:
missing:
description: Packages that are missing from the system
returned: success
type: list
sample:
- libmysqlclient-dev
- libxml2-dev
badversion:
description: Packages that are installed but at bad versions.
returned: success
type: list
sample:
- package: libxml2-dev
version: 2.9.4+dfsg1-2
constraint: ">= 3.0"
'''
.. note:: .. note::

Loading…
Cancel
Save