From 34145a4e69faf4ae91664ad1e6645dce43fae6e5 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 15 Nov 2016 14:58:27 -0800 Subject: [PATCH] Update samples to support latest Google Cloud Python [(#656)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/656) --- samples/snippets/list_clusters.py | 1 + samples/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/snippets/list_clusters.py b/samples/snippets/list_clusters.py index e08ee889..38e6dd27 100644 --- a/samples/snippets/list_clusters.py +++ b/samples/snippets/list_clusters.py @@ -47,6 +47,7 @@ def main(project_id, zone): result = list_clusters(dataproc, project_id) print(result) + if __name__ == '__main__': parser = argparse.ArgumentParser( description=__doc__, diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 6ac114bc..d291ebf7 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ google-api-python-client==1.5.5 -google-cloud==0.20.0 +google-cloud==0.21.0