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

Fix error where cdpy reports missing credentials when used with CDPCLI 0.9.42 #29

Closed Chaffelson closed 3 years ago

Chaffelson commented 3 years ago

cdpcli 0.9.42 introduced the mandatory 'region' argument to the client_builder in release 0.9.42. Our client builder was using implicit argument ordering. Change client builder to use explicit argument names. Change client builder to prefer new method of client creation, and fall back to legacy if 'region' causes a TypeError.

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