tests: update gcloud.py to match terraform config

This commit is contained in:
David Wilson 2019-07-30 03:27:08 +00:00
parent 4dfbe82e76
commit 5ed0b93669
1 changed files with 2 additions and 2 deletions

View File

@ -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'])