From 0c28d0272911b636fcbea53c19d215ca1acd9921 Mon Sep 17 00:00:00 2001 From: Oli Hall Date: Thu, 16 Nov 2017 18:56:28 +0000 Subject: [PATCH] Fix broken method calls Was calling pydataproc methods on the internal dataproc client --- pydataproc/dataproc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydataproc/dataproc.py b/pydataproc/dataproc.py index 0d27519..660cfb0 100644 --- a/pydataproc/dataproc.py +++ b/pydataproc/dataproc.py @@ -162,12 +162,12 @@ def create_cluster(self, cluster_name, num_masters=1, num_workers=2, return result - is_running = self.dataproc.is_running(cluster_name) + is_running = self.is_running(cluster_name) log.info("Waiting for cluster to be ready...") log.warn("N.B. This may get stuck if the cluster never reaches a RUNNING state") while not is_running: time.sleep(5) - is_running = self.dataproc.is_running(cluster_name) + is_running = self.is_running(cluster_name) return self.cluster_info(cluster_name)