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

Commit

Permalink
removed kind checks (#76)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
  • Loading branch information
modular-magician authored and rambleraptor committed Sep 21, 2018
1 parent 2e06037 commit c92e418
Show file tree
Hide file tree
Showing 33 changed files with 0 additions and 66 deletions.
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_target_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_url_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
2 changes: 0 additions & 2 deletions lib/ansible/modules/cloud/google/gcp_storage_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def return_if_object(module, response, kind):

if navigate_hash(result, ['error', 'errors']):
module.fail_json(msg=navigate_hash(result, ['error', 'errors']))
if result['kind'] != kind:
module.fail_json(msg="Incorrect result: {kind}".format(**result))

return result

Expand Down

0 comments on commit c92e418

Please sign in to comment.