cloudera-labs / cloudera.cluster

An Ansible collection for lifecycle and management of Cloudera CDP Private Cloud resources on bare metal, IaaS, and PaaS.
Apache License 2.0
32 stars 46 forks source link

Update cm_utils.py to not contain controller-only code #135

Closed wmudge closed 9 months ago

wmudge commented 9 months ago

Current version of module_utils/cm_utils.py has both controller-only code (for the base Lookup class) and general code (for the base Module class). Any module that extends the latter will fail to run in a non-controller environment since the imports like ansible.utils.display are not available. Need to split out the controller-only into its own file.