From 528163ded21d88853ff35fb86c7da394e6342675 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 3 Jan 2020 12:35:49 -0800 Subject: [PATCH] Bug fixes for GCP modules (#65681) --- lib/ansible/modules/cloud/google/gcp_logging_metric.py | 6 +++--- lib/ansible/modules/cloud/google/gcp_logging_metric_info.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gcp_logging_metric.py b/lib/ansible/modules/cloud/google/gcp_logging_metric.py index 32d355fab70..137c600416c 100644 --- a/lib/ansible/modules/cloud/google/gcp_logging_metric.py +++ b/lib/ansible/modules/cloud/google/gcp_logging_metric.py @@ -208,7 +208,7 @@ options: description: - Must be greater than 1. required: false - type: int + type: str scale: description: - Must be greater than 0. @@ -456,7 +456,7 @@ bucketOptions: description: - Must be greater than 1. returned: success - type: int + type: str scale: description: - Must be greater than 0. @@ -518,7 +518,7 @@ def main(): options=dict( linear_buckets=dict(type='dict', options=dict(num_finite_buckets=dict(type='int'), width=dict(type='int'), offset=dict(type='str'))), exponential_buckets=dict( - type='dict', options=dict(num_finite_buckets=dict(type='int'), growth_factor=dict(type='int'), scale=dict(type='str')) + type='dict', options=dict(num_finite_buckets=dict(type='int'), growth_factor=dict(type='str'), scale=dict(type='str')) ), explicit_buckets=dict(type='dict', options=dict(bounds=dict(required=True, type='list', elements='str'))), ), diff --git a/lib/ansible/modules/cloud/google/gcp_logging_metric_info.py b/lib/ansible/modules/cloud/google/gcp_logging_metric_info.py index f5d1f6cdfa8..488b457d825 100644 --- a/lib/ansible/modules/cloud/google/gcp_logging_metric_info.py +++ b/lib/ansible/modules/cloud/google/gcp_logging_metric_info.py @@ -257,7 +257,7 @@ resources: description: - Must be greater than 1. returned: success - type: int + type: str scale: description: - Must be greater than 0.