From ccedc85e48efef850514bd6c942aaf1cf89c3041 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 9 Apr 2019 10:54:08 -0700 Subject: [PATCH] Bug fixes for GCP modules (#55019) --- lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger.py | 5 +++-- .../modules/cloud/google/gcp_cloudbuild_trigger_facts.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger.py b/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger.py index 13759a8401..4e472b0fb3 100644 --- a/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger.py +++ b/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger.py @@ -60,6 +60,7 @@ options: - Whether the trigger is disabled or not. If true, the trigger will never result in a build. required: false + type: bool substitutions: description: - Substitutions data for Build resource. @@ -300,7 +301,7 @@ disabled: - Whether the trigger is disabled or not. If true, the trigger will never result in a build. returned: success - type: str + type: bool createTime: description: - Time when the trigger was created. @@ -541,7 +542,7 @@ def main(): state=dict(default='present', choices=['present', 'absent'], type='str'), id=dict(type='str'), description=dict(type='str'), - disabled=dict(type='str'), + disabled=dict(type='bool'), substitutions=dict(type='dict'), filename=dict(type='str'), ignored_files=dict(type='list', elements='str'), diff --git a/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger_facts.py b/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger_facts.py index 05faee0071..42c4dc6417 100644 --- a/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger_facts.py +++ b/lib/ansible/modules/cloud/google/gcp_cloudbuild_trigger_facts.py @@ -73,7 +73,7 @@ items: - Whether the trigger is disabled or not. If true, the trigger will never result in a build. returned: success - type: str + type: bool createTime: description: - Time when the trigger was created.