Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
replacing the items key with the resources key (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and rambleraptor committed Sep 5, 2019
1 parent 39cf4cc commit c301d3b
Show file tree
Hide file tree
Showing 61 changed files with 173 additions and 173 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/gcp_bigquery_dataset_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -209,7 +209,7 @@ def main():
items = items.get('datasets')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_bigquery_table_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -523,7 +523,7 @@ def main():
items = items.get('tables')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_cloudbuild_trigger_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -325,7 +325,7 @@ def main():
items = items.get('triggers')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_address_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -158,7 +158,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_backend_bucket_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -142,7 +142,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_backend_service_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -375,7 +375,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_disk_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -301,7 +301,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_firewall_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -258,7 +258,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_forwarding_rule_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -259,7 +259,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_global_address_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -138,7 +138,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_global_forwarding_rule_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -189,7 +189,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_health_check_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -313,7 +313,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_http_health_check_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -159,7 +159,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_https_health_check_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -159,7 +159,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_image_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -301,7 +301,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_instance_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -494,7 +494,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_instance_group_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -167,7 +167,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_instance_group_manager_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -242,7 +242,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_instance_template_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -483,7 +483,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/gcp_compute_interconnect_attachment_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
'''

RETURN = '''
items:
description: List of items
resources:
description: List of resources
returned: always
type: complex
contains:
Expand Down Expand Up @@ -221,7 +221,7 @@ def main():
items = items.get('items')
else:
items = []
return_value = {'items': items}
return_value = {'resources': items}
module.exit_json(**return_value)


Expand Down
Loading

0 comments on commit c301d3b

Please sign in to comment.