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

Ansible: falses being lost in network requests #141

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_url_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_container_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_pubsub_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_spanner_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def resource_to_request(module):
request = encode_request(request, module)
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_spanner_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_sql_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_sql_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def resource_to_request(module):
}
return_vals = {}
for k, v in request.items():
if v:
if v is not None:
return_vals[k] = v

return return_vals
Expand Down
Loading