diff --git a/samples/snippets/list_clusters.py b/samples/snippets/list_clusters.py index f0e7bac3..916f1a54 100644 --- a/samples/snippets/list_clusters.py +++ b/samples/snippets/list_clusters.py @@ -32,7 +32,7 @@ def list_clusters(dataproc, project, region): ( "{} - {}".format( cluster.cluster_name, - cluster.status.State.Name(cluster.status.state), + cluster.status.state.name ) ) ) diff --git a/samples/snippets/submit_job_to_cluster.py b/samples/snippets/submit_job_to_cluster.py index d613cf5b..35d329c5 100644 --- a/samples/snippets/submit_job_to_cluster.py +++ b/samples/snippets/submit_job_to_cluster.py @@ -137,7 +137,7 @@ def list_clusters_with_details(dataproc, project, region): ( "{} - {}".format( cluster.cluster_name, - cluster.status.State.Name(cluster.status.state), + cluster.status.state.name, ) ) )