fixed RETURN docs for modules (#24011)

* fixed RETURN docs for remaining modules

* updated proxymysql_mysql_users 'sample' to yaml dict

* fixed whitespace errors
This commit is contained in:
Andrea Tartaglia
2017-04-26 15:56:13 +01:00
committed by John R Barker
parent 9a0a7f78d7
commit d1517f997a
40 changed files with 105 additions and 102 deletions

View File

@@ -67,7 +67,10 @@ EXAMPLES = """
"""
RETURN = """
msg: Gathered facts for <StorageArrayId>.
msg:
description: Gathered facts for <StorageArrayId>.
returned: always
type: string
"""
import json

View File

@@ -98,8 +98,11 @@ EXAMPLES = '''
api_password: "{{ netapp_api_password }}"
'''
RETURN = '''
msg: Mapping exists.
msg: Mapping removed.
msg:
description: Status of mapping
returned: always
type: string
sample: 'Mapping existing'
'''
import json

View File

@@ -73,9 +73,16 @@ EXAMPLES = """
"""
RETURN = """
---
changed: true
msg: "Created snapshot image"
image_id: "3400000060080E5000299B640063074057BC5C5E "
msg:
description: State of operation
type: string
returned: always
sample: "Created snapshot image"
image_id:
description: ID of snaphot image
type: string
returned: state == created
sample: "3400000060080E5000299B640063074057BC5C5E "
"""
HEADERS = {

View File

@@ -99,8 +99,11 @@ EXAMPLES = '''
'''
RETURN = '''
msg: Storage system removed.
msg: Storage system added.
msg:
description: State of request
type: string
returned: always
sample: 'Storage system removed.'
'''
import json
from datetime import datetime as dt, timedelta

View File

@@ -134,12 +134,11 @@ EXAMPLES = '''
'''
RETURN = '''
---
msg: "Standard volume [workload_vol_1] has been created."
msg: "Thin volume [workload_thin_vol] has been created."
msg: "Volume [workload_vol_1] has been expanded."
msg: "Volume [workload_vol_1] has been deleted."
msg: "Volume [workload_vol_1] did not exist."
msg: "Volume [workload_vol_1] already exists."
msg:
description: State of volume
type: string
returned: always
sample: "Standard volume [workload_vol_1] has been created."
'''
import json

View File

@@ -139,7 +139,7 @@ RETURN = """
schedule_id:
description: Schedule ID of the newly created schedule
returned: success
type: string
"""
from ansible.module_utils.basic import AnsibleModule