From 5ed0b936691614f7a3d44caf535a68e117031a27 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 30 Jul 2019 03:27:08 +0000 Subject: [PATCH] tests: update gcloud.py to match terraform config --- tests/ansible/lib/inventory/gcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ansible/lib/inventory/gcloud.py b/tests/ansible/lib/inventory/gcloud.py index 73e083f4..9920a008 100755 --- a/tests/ansible/lib/inventory/gcloud.py +++ b/tests/ansible/lib/inventory/gcloud.py @@ -14,14 +14,14 @@ import googleapiclient.discovery def main(): project = 'mitogen-load-testing' zone = 'europe-west1-d' - group_name = 'micro-debian9' + prefix = 'node-' client = googleapiclient.discovery.build('compute', 'v1') resp = client.instances().list(project=project, zone=zone).execute() ips = [] for inst in resp['items']: - if inst['status'] == 'RUNNING' and inst['name'].startswith(group_name): + if inst['status'] == 'RUNNING' and inst['name'].startswith(prefix): ips.extend( #bytes(config['natIP']) bytes(interface['networkIP'])