diff --git a/lib/ansible/modules/cloud/google/gcp_compute_address.py b/lib/ansible/modules/cloud/google/gcp_compute_address.py index b5b8726b47b3b3..5fb90c7a32213a 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_address.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_address.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py b/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py index 3cbc235d42e40b..2828b09014e6d8 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_backend_bucket.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py b/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py index 6f69be8da6313c..d9a27eaa560d5c 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_backend_service.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_disk.py b/lib/ansible/modules/cloud/google/gcp_compute_disk.py index c8156e2db4fdd0..164fe9812c52cd 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_disk.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_disk.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_firewall.py b/lib/ansible/modules/cloud/google/gcp_compute_firewall.py index 4f414adaf5e89e..8c3dd12d497e2d 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_firewall.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_firewall.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py b/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py index 9ba834304a77a4..1ce3cd24dea76d 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_forwarding_rule.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_global_address.py b/lib/ansible/modules/cloud/google/gcp_compute_global_address.py index 88283797388344..c40224c7825599 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_global_address.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_global_address.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py b/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py index bf43943e43deb9..c45f5e25796c18 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_global_forwarding_rule.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_health_check.py b/lib/ansible/modules/cloud/google/gcp_compute_health_check.py index 527bf6412da896..42d35caaf01403 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_health_check.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_health_check.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_http_health_check.py b/lib/ansible/modules/cloud/google/gcp_compute_http_health_check.py index 75d259ef92f718..9979b5c2fef117 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_http_health_check.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_http_health_check.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_https_health_check.py b/lib/ansible/modules/cloud/google/gcp_compute_https_health_check.py index be515ce034b8af..11d27b50c2878b 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_https_health_check.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_https_health_check.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_image.py b/lib/ansible/modules/cloud/google/gcp_compute_image.py index 80356c9b264128..15bba3f5fb00ae 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_image.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_image.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance.py b/lib/ansible/modules/cloud/google/gcp_compute_instance.py index 9686e48d93140d..5c16bca12de273 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py index 63da353dcc096d..8d958f33ab05d6 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_group.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py index a84d86aac7572b..4712f2c88db455 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_group_manager.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py b/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py index 2a7ac854fcffaa..c47c21fd05c8ac 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_instance_template.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_interconnect_attachment.py b/lib/ansible/modules/cloud/google/gcp_compute_interconnect_attachment.py index ef86aa2c472e7b..4ea397ac20ab74 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_interconnect_attachment.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_interconnect_attachment.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_network.py b/lib/ansible/modules/cloud/google/gcp_compute_network.py index 3844513261b753..a2bf801ceb8601 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_network.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_network.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_region_disk.py b/lib/ansible/modules/cloud/google/gcp_compute_region_disk.py index d13b3f739130bf..914ace9cb29e05 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_region_disk.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_region_disk.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_route.py b/lib/ansible/modules/cloud/google/gcp_compute_route.py index 546b0dfd35efcc..910bdb48f7c171 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_route.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_route.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_router.py b/lib/ansible/modules/cloud/google/gcp_compute_router.py index be8bf03f37e1aa..ff64d09fdb6e40 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_router.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_router.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_ssl_certificate.py b/lib/ansible/modules/cloud/google/gcp_compute_ssl_certificate.py index 1626e85c4de67c..7a2a9e005e878c 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_ssl_certificate.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_ssl_certificate.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py b/lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py index d1336036856b85..f622beaca2ddf3 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py b/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py index d8e2946595102a..4ba98936426952 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py index 5fc0ec61a22697..ec5151bbc6049d 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_http_proxy.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py index d2e2eed5a64bba..123a95ab5f54f6 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_https_proxy.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_pool.py b/lib/ansible/modules/cloud/google/gcp_compute_target_pool.py index 012a2de94365f9..baeff39d2e7746 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_pool.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_pool.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py index 2a59d7d0622ebd..d3e3b6d66553e7 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_ssl_proxy.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py b/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py index d31462939993eb..87a5ef9b53cb60 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_tcp_proxy.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_target_vpn_gateway.py b/lib/ansible/modules/cloud/google/gcp_compute_target_vpn_gateway.py index d01d144acbb1ce..db5bb505394c82 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_target_vpn_gateway.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_target_vpn_gateway.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_url_map.py b/lib/ansible/modules/cloud/google/gcp_compute_url_map.py index 25a549cc0abdfe..37734f927789c9 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_url_map.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_url_map.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py b/lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py index b5ae722db114f8..0b240e982a70d3 100644 --- a/lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py +++ b/lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_container_cluster.py b/lib/ansible/modules/cloud/google/gcp_container_cluster.py index 5555ea5880eaa7..68cf3b0eee2547 100644 --- a/lib/ansible/modules/cloud/google/gcp_container_cluster.py +++ b/lib/ansible/modules/cloud/google/gcp_container_cluster.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_container_node_pool.py b/lib/ansible/modules/cloud/google/gcp_container_node_pool.py index d3196ff18aefcf..eb37cda187a6a3 100644 --- a/lib/ansible/modules/cloud/google/gcp_container_node_pool.py +++ b/lib/ansible/modules/cloud/google/gcp_container_node_pool.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py b/lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py index e46350c6bead16..df8b09f32408b0 100644 --- a/lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py +++ b/lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py index 936bbd361d0926..e935096ae7d1ba 100644 --- a/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py +++ b/lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_iam_service_account.py b/lib/ansible/modules/cloud/google/gcp_iam_service_account.py index 71267ae250b76d..06f10ec0739a41 100644 --- a/lib/ansible/modules/cloud/google/gcp_iam_service_account.py +++ b/lib/ansible/modules/cloud/google/gcp_iam_service_account.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py index dea237fef1f0f7..4eed3eb62e8120 100644 --- a/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py +++ b/lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_pubsub_topic.py b/lib/ansible/modules/cloud/google/gcp_pubsub_topic.py index a5d6027cbfdad1..b93b62fae5ce1e 100644 --- a/lib/ansible/modules/cloud/google/gcp_pubsub_topic.py +++ b/lib/ansible/modules/cloud/google/gcp_pubsub_topic.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py b/lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py index fe46412bf2a80c..925bfd4880b1c8 100644 --- a/lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py +++ b/lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_spanner_database.py b/lib/ansible/modules/cloud/google/gcp_spanner_database.py index f3f84f411d22f8..162cd2e21c9077 100644 --- a/lib/ansible/modules/cloud/google/gcp_spanner_database.py +++ b/lib/ansible/modules/cloud/google/gcp_spanner_database.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_spanner_instance.py b/lib/ansible/modules/cloud/google/gcp_spanner_instance.py index 1d4fe334d78c08..b3a574997c318e 100644 --- a/lib/ansible/modules/cloud/google/gcp_spanner_instance.py +++ b/lib/ansible/modules/cloud/google/gcp_spanner_instance.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_sql_database.py b/lib/ansible/modules/cloud/google/gcp_sql_database.py index e1d0832edc7cb0..97e9095c69b8ad 100644 --- a/lib/ansible/modules/cloud/google/gcp_sql_database.py +++ b/lib/ansible/modules/cloud/google/gcp_sql_database.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_sql_instance.py b/lib/ansible/modules/cloud/google/gcp_sql_instance.py index 2a9938f3a35d08..45a9c3eeda6854 100644 --- a/lib/ansible/modules/cloud/google/gcp_sql_instance.py +++ b/lib/ansible/modules/cloud/google/gcp_sql_instance.py @@ -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 diff --git a/lib/ansible/modules/cloud/google/gcp_sql_user.py b/lib/ansible/modules/cloud/google/gcp_sql_user.py index 566352420f2ae0..0db23270074e77 100644 --- a/lib/ansible/modules/cloud/google/gcp_sql_user.py +++ b/lib/ansible/modules/cloud/google/gcp_sql_user.py @@ -211,7 +211,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 diff --git a/lib/ansible/modules/cloud/google/gcp_storage_bucket.py b/lib/ansible/modules/cloud/google/gcp_storage_bucket.py index f26361ef9a60c0..c5bebcb44af267 100644 --- a/lib/ansible/modules/cloud/google/gcp_storage_bucket.py +++ b/lib/ansible/modules/cloud/google/gcp_storage_bucket.py @@ -936,7 +936,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 diff --git a/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py b/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py index d075f43d175091..6e2d13f7e4046d 100644 --- a/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py +++ b/lib/ansible/modules/cloud/google/gcp_storage_bucket_access_control.py @@ -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