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 Apr 30, 2019
1 parent bb4e085 commit 0a9242c
Show file tree
Hide file tree
Showing 91 changed files with 233 additions and 233 deletions.
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 lib/ansible/modules/cloud/google/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
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 lib/ansible/modules/cloud/google/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
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
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 lib/ansible/modules/cloud/google/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
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
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
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
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
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
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
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 lib/ansible/modules/cloud/google/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
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
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
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
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
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 0a9242c

Please sign in to comment.