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

Error handling for wrapper - client - server call mismatches #25

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

Chaffelson
Copy link
Collaborator

Add error handling for when the user requests a call from cdpy that is not available in the installed CDPCLI
Add error handling for when CDPCLI makes a call that is not available in the remote CDP Control Plane

Signed-off-by: Daniel Chaffelson chaffelson@gmail.com

@Chaffelson
Copy link
Collaborator Author

@wmudge @cmperro I implemented this to handle the possibility of version mismatches between CDPCLI and CDP Control Plane, both now with the new DF API, but also in consideration of Private Cloud versions in future.
I'm not sure we need it however - it's just a better catch and release on the error, which means we could code responses, but I think actually we'd probably still want the Play to halt in these situations as the user is almost certainly not expecting it. Thoughts?

@Chaffelson Chaffelson force-pushed the handle_client_mismatch branch from b04241b to 65c3d49 Compare August 18, 2021 15:50
@Chaffelson Chaffelson marked this pull request as ready for review August 19, 2021 13:41
@Chaffelson Chaffelson requested review from cmperro and wmudge August 19, 2021 13:42
@wmudge
Copy link
Member

wmudge commented Sep 16, 2021

@Chaffelson -- has conflicts that need resolution.

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.

LGTM, but GH is complaining about conflicts from upstream. Rebase and resolve?

…s not available in the installed CDPCLI

Add error handling for when CDPCLI makes a call that is not available in the remote CDP Control Plane

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
…out of call()

Directly Handle parsing AttributeError and ValidationError into common format
Move Handling REMOTE_NOT_IMPLMENTED in CdpError

Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
@Chaffelson Chaffelson force-pushed the handle_client_mismatch branch from 65c3d49 to 1d9b387 Compare September 28, 2021 10:01
@Chaffelson Chaffelson requested a review from wmudge September 28, 2021 10:02
@wmudge wmudge merged commit bfa4e20 into cloudera-labs:devel Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants