There is an inconsistency between modules regarding the CML_LAB environmental variable usage.
cml_lab_facts does not have fallback to this ENV var:
|
argument_spec.update(lab=dict(type='str', required=True), ) |
but others do have it:
|
lab=dict(type='str', required=True, fallback=(env_fallback, ['CML_LAB'])), |
|
lab=dict(type='str', required=True, fallback=(env_fallback, ['CML_LAB'])), |
It would make sense to have the same behavior when using ENV vars across all modules.
There is an inconsistency between modules regarding the CML_LAB environmental variable usage.
cml_lab_facts does not have fallback to this ENV var:
ansible-cml/plugins/modules/cml_lab_facts.py
Line 71 in 716c622
but others do have it:
ansible-cml/plugins/modules/cml_lab.py
Line 117 in 716c622
ansible-cml/plugins/modules/cml_node.py
Line 127 in 716c622
It would make sense to have the same behavior when using ENV vars across all modules.