From 5a3dc054bd897e24749d69da41dcb9168c31c538 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Fri, 8 Jul 2016 10:54:31 +0200 Subject: [PATCH] doc: remove common return values from various modules --- cloud/centurylink/clc_aa_policy.py | 5 ----- cloud/centurylink/clc_alert_policy.py | 5 ----- cloud/centurylink/clc_blueprint_package.py | 5 ----- cloud/centurylink/clc_firewall_policy.py | 5 ----- cloud/centurylink/clc_group.py | 5 ----- cloud/centurylink/clc_loadbalancer.py | 5 ----- cloud/centurylink/clc_modify_server.py | 5 ----- cloud/centurylink/clc_publicip.py | 5 ----- cloud/centurylink/clc_server.py | 5 ----- cloud/centurylink/clc_server_snapshot.py | 5 ----- cloud/vmware/vmware_local_user_manager.py | 16 +++++----------- 11 files changed, 5 insertions(+), 61 deletions(-) diff --git a/cloud/centurylink/clc_aa_policy.py b/cloud/centurylink/clc_aa_policy.py index 7596651181a..681e71cb3a1 100644 --- a/cloud/centurylink/clc_aa_policy.py +++ b/cloud/centurylink/clc_aa_policy.py @@ -100,11 +100,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True policy: description: The anti affinity policy information returned: success diff --git a/cloud/centurylink/clc_alert_policy.py b/cloud/centurylink/clc_alert_policy.py index a4f07371dac..b8817b6618a 100644 --- a/cloud/centurylink/clc_alert_policy.py +++ b/cloud/centurylink/clc_alert_policy.py @@ -132,11 +132,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True policy: description: The alert policy information returned: success diff --git a/cloud/centurylink/clc_blueprint_package.py b/cloud/centurylink/clc_blueprint_package.py index 2b0a9774b62..4e8a392495a 100644 --- a/cloud/centurylink/clc_blueprint_package.py +++ b/cloud/centurylink/clc_blueprint_package.py @@ -81,11 +81,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True server_ids: description: The list of server ids that are changed returned: success diff --git a/cloud/centurylink/clc_firewall_policy.py b/cloud/centurylink/clc_firewall_policy.py index b37123b4ec0..c26128a40ba 100644 --- a/cloud/centurylink/clc_firewall_policy.py +++ b/cloud/centurylink/clc_firewall_policy.py @@ -130,11 +130,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True firewall_policy_id: description: The fire wall policy id returned: success diff --git a/cloud/centurylink/clc_group.py b/cloud/centurylink/clc_group.py index 01fbbe2e67e..f30b37d6ec1 100644 --- a/cloud/centurylink/clc_group.py +++ b/cloud/centurylink/clc_group.py @@ -112,11 +112,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True group: description: The group information returned: success diff --git a/cloud/centurylink/clc_loadbalancer.py b/cloud/centurylink/clc_loadbalancer.py index 7771a7ea362..abb421c755e 100644 --- a/cloud/centurylink/clc_loadbalancer.py +++ b/cloud/centurylink/clc_loadbalancer.py @@ -174,11 +174,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True loadbalancer: description: The load balancer result object from CLC returned: success diff --git a/cloud/centurylink/clc_modify_server.py b/cloud/centurylink/clc_modify_server.py index a7ccbaefc47..a676248ffd0 100644 --- a/cloud/centurylink/clc_modify_server.py +++ b/cloud/centurylink/clc_modify_server.py @@ -155,11 +155,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True server_ids: description: The list of server ids that are changed returned: success diff --git a/cloud/centurylink/clc_publicip.py b/cloud/centurylink/clc_publicip.py index 12cfda3c5d1..9c21a9a6156 100644 --- a/cloud/centurylink/clc_publicip.py +++ b/cloud/centurylink/clc_publicip.py @@ -111,11 +111,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True server_ids: description: The list of server ids that are changed returned: success diff --git a/cloud/centurylink/clc_server.py b/cloud/centurylink/clc_server.py index 42cd70ae8e8..3cb44040126 100644 --- a/cloud/centurylink/clc_server.py +++ b/cloud/centurylink/clc_server.py @@ -277,11 +277,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True server_ids: description: The list of server ids that are created returned: success diff --git a/cloud/centurylink/clc_server_snapshot.py b/cloud/centurylink/clc_server_snapshot.py index 6d6963e2097..6c7e8920e46 100644 --- a/cloud/centurylink/clc_server_snapshot.py +++ b/cloud/centurylink/clc_server_snapshot.py @@ -94,11 +94,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: A flag indicating if any change was made or not - returned: success - type: boolean - sample: True server_ids: description: The list of server ids that are changed returned: success diff --git a/cloud/vmware/vmware_local_user_manager.py b/cloud/vmware/vmware_local_user_manager.py index 27ca703c206..c7e8ecb9311 100644 --- a/cloud/vmware/vmware_local_user_manager.py +++ b/cloud/vmware/vmware_local_user_manager.py @@ -60,18 +60,12 @@ EXAMPLES = ''' local_action: module: vmware_local_user_manager hostname: esxi_hostname - username: root + username: root password: vmware - local_user_name: foo + local_user_name: foo ''' -RETURN = ''' -changed: - description: A flag indicating if any change was made or not. - returned: success - type: boolean - sample: True -''' +RETURN = '''# ''' try: from pyVmomi import vim, vmodl @@ -181,12 +175,12 @@ def main(): local_user_password=dict(required=False, type='str', no_log=True), local_user_description=dict(required=False, type='str'), state=dict(default='present', choices=['present', 'absent'], type='str'))) - + module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=False) if not HAS_PYVMOMI: module.fail_json(msg='pyvmomi is required for this module') - + vmware_local_user_manager = VMwareLocalUserManager(module) vmware_local_user_manager.process_state()