From 161ad4bf2cd2de961987279b040584b21b02835f Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 25 Nov 2019 16:19:19 -0800 Subject: [PATCH] Bug fixes for GCP modules (#64828) --- lib/ansible/modules/cloud/google/gcp_tpu_node.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gcp_tpu_node.py b/lib/ansible/modules/cloud/google/gcp_tpu_node.py index 71c0be06ac5..7c5249ff2b0 100644 --- a/lib/ansible/modules/cloud/google/gcp_tpu_node.py +++ b/lib/ansible/modules/cloud/google/gcp_tpu_node.py @@ -96,8 +96,7 @@ options: preemptible: description: - Defines whether the TPU instance is preemptible. - required: false - default: 'false' + required: true type: bool labels: description: @@ -287,7 +286,7 @@ def main(): tensorflow_version=dict(required=True, type='str'), network=dict(type='str'), cidr_block=dict(required=True, type='str'), - scheduling_config=dict(type='dict', options=dict(preemptible=dict(type='bool'))), + scheduling_config=dict(type='dict', options=dict(preemptible=dict(required=True, type='bool'))), labels=dict(type='dict'), zone=dict(required=True, type='str'), )