cloudera-labs / cdpy

A Simple Pythonic Client wrapper for Cloudera CDP CLI, designed for use with the Ansible framework
Apache License 2.0
10 stars 22 forks source link

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

Closed Chaffelson closed 3 years ago

Chaffelson commented 3 years ago

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 commented 3 years ago

@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?

wmudge commented 3 years ago

@Chaffelson -- has conflicts that need resolution.