Fix RETURN document to be a valid yaml

This commit is contained in:
Hiroaki Nakamura 2016-05-11 07:37:34 +09:00
parent 5e10ca5c3d
commit f72b0288c0

View file

@ -94,25 +94,24 @@ EXAMPLES = """
RETURN=""" RETURN="""
lxd_container: lxd_container:
description: container information description: container information
returned: success returned: success
type: object type: object
contains: contains:
addresses: addresses:
description: mapping from the network device name to a list description: mapping from the network device name to a list of IPv4 addresses in the container
of IPv4 addresses in the container returned: when state is started or restarted
returned: when state is started or restarted type: object
type: object sample: {"eth0": ["10.155.92.191"]}
sample: {"eth0": ["10.155.92.191"]} old_state:
old_state: description: the old state of the container
description: the old state of the container returned: when state is started or restarted
returned: when state is started or restarted sample: "stopped"
sample: "stopped" logs:
logs": ["started"], description: list of actions performed for the container
description: list of actions performed for the container returned: success
returned: success type: list
type: list sample: ["created", "started"]
sample: ["created", "started"]
""" """
from distutils.spawn import find_executable from distutils.spawn import find_executable