From 536bef7166f6999fbc5db65844c6fb47b3a2cf29 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 19 Jul 2021 13:22:38 -0500 Subject: [PATCH] set optional computed on fields that are conditional to balancing_mode (#4975) (#446) Signed-off-by: Modular Magician --- plugins/modules/gcp_compute_backend_service.py | 7 +++---- plugins/modules/gcp_compute_backend_service_info.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/modules/gcp_compute_backend_service.py b/plugins/modules/gcp_compute_backend_service.py index c23a49d..e0a583b 100644 --- a/plugins/modules/gcp_compute_backend_service.py +++ b/plugins/modules/gcp_compute_backend_service.py @@ -160,9 +160,8 @@ options: max_utilization: description: - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - target for the group. The default is 0.8. Valid range is [0.0, 1.0]. + target for the group. Valid range is [0.0, 1.0]. required: false - default: '0.8' type: str circuit_breakers: description: @@ -882,7 +881,7 @@ backends: maxUtilization: description: - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - target for the group. The default is 0.8. Valid range is [0.0, 1.0]. + target for the group. Valid range is [0.0, 1.0]. returned: success type: str circuitBreakers: @@ -1438,7 +1437,7 @@ def main(): max_rate=dict(type='int'), max_rate_per_instance=dict(type='str'), max_rate_per_endpoint=dict(type='str'), - max_utilization=dict(default=0.8, type='str'), + max_utilization=dict(type='str'), ), ), circuit_breakers=dict( diff --git a/plugins/modules/gcp_compute_backend_service_info.py b/plugins/modules/gcp_compute_backend_service_info.py index 8c24c54..a5dca7d 100644 --- a/plugins/modules/gcp_compute_backend_service_info.py +++ b/plugins/modules/gcp_compute_backend_service_info.py @@ -220,7 +220,7 @@ resources: maxUtilization: description: - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - target for the group. The default is 0.8. Valid range is [0.0, 1.0]. + target for the group. Valid range is [0.0, 1.0]. returned: success type: str circuitBreakers: