Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle df errors when Dataflow not enabled on CDP tenant #45

Conversation

jimright
Copy link
Contributor

@jimright jimright commented Apr 7, 2022

Added Squelch to catch PATH_DISABLED error code that is returned when Dataflow entitlement is not enabled.

For completeness added to the following methods:

  • list_services
  • describe_service
  • list_deployments
  • describe_deployment
  • list_readyflows
  • list_flow_definitions
  • describe_readyflow
  • import_readyflow
  • delete_added_readyflow
  • describe_added_readyflow
  • describe_customflow

Signed-off-by: Jim Enright [email protected]

@wmudge wmudge changed the base branch from devel to release/v0.8.0 April 7, 2022 18:02
@wmudge wmudge added the bug Something isn't working label Apr 7, 2022
Copy link
Member

@wmudge wmudge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but you can drop the field parameter in the Squelch objects because the parameter defaults to error_code. See https://github.com/cloudera-labs/cdpy/blob/devel/src/cdpy/common.py#L121

If you want to make these changes before I commit, go ahead. Otherwise, we can clean up in a subsequent PR.

@jimright
Copy link
Contributor Author

jimright commented Apr 7, 2022

Approved, but you can drop the field parameter in the Squelch objects because the parameter defaults to error_code. See https://github.com/cloudera-labs/cdpy/blob/devel/src/cdpy/common.py#L121

If you want to make these changes before I commit, go ahead. Otherwise, we can clean up in a subsequent PR.

Thanks @wmudge - I've made that suggested change.

@wmudge wmudge merged commit 36aa59d into cloudera-labs:release/v0.8.0 Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants