From 04906ae2cd6a82285c9ef7d504c7b480b7180bf9 Mon Sep 17 00:00:00 2001 From: Oli Hall Date: Tue, 21 Nov 2017 08:58:21 +0000 Subject: [PATCH] Disable cache discovery https://github.com/google/google-api-python-client/issues/299 --- pydataproc/dataproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydataproc/dataproc.py b/pydataproc/dataproc.py index 2f75b0f..c282e7a 100644 --- a/pydataproc/dataproc.py +++ b/pydataproc/dataproc.py @@ -21,7 +21,7 @@ def __init__(self, project, region='europe-west1', zone='europe-west1-b'): def get_client(self): """Builds a client to the dataproc API.""" - dataproc = googleapiclient.discovery.build('dataproc', 'v1') + dataproc = googleapiclient.discovery.build('dataproc', 'v1', cache_discovery=False) return dataproc def is_running(self, cluster_name):