From 5d56d3f2d266909fd1c3856d8e3773604d28b9dd Mon Sep 17 00:00:00 2001 From: laithalissa <887720+laithalissa@users.noreply.github.com> Date: Wed, 8 Feb 2023 21:36:14 +0000 Subject: [PATCH] Update example inventory filter Update the example inventory filter to not use a machineType filter. The existing machineType filter example is erroneous, see https://github.com/ansible-collections/google.cloud/issues/421#issuecomment-1361680826 Change the filter to use "status = RUNNING" --- plugins/inventory/gcp_compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inventory/gcp_compute.py b/plugins/inventory/gcp_compute.py index 3442a64..733cd3f 100644 --- a/plugins/inventory/gcp_compute.py +++ b/plugins/inventory/gcp_compute.py @@ -125,8 +125,8 @@ projects: - gcp-prod-gke-100 - gcp-cicd-101 filters: - - machineType = n1-standard-1 - - scheduling.automaticRestart = true AND machineType = n1-standard-1 + - status = RUNNING + - scheduling.automaticRestart = true AND status = RUNNING service_account_file: /tmp/service_account.json auth_kind: serviceaccount scopes: