googleapis/python-dataproc

Attribute error Name while executing the snippet

vikrant-sinha opened this issue · 0 comments

cluster.status.State.Name(cluster.status.state),

  File "/usr/local/lib/python3.6/enum.py", line 326, in __getattr__
    raise AttributeError(name) from None
AttributeError: Name```

A better approach would be to use `cluster.status.state.name`