Pure Storage _facts modules need to be renamed to _info and stop returning ansible_facts #60525
Labels
affects_2.9
This issue/PR affects Ansible v2.9
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
pure_storage
storage
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
According to the requirements,
_facts
modules should return information that is specific to the host the module runs on asansible_facts
. (See also #54280 for some discussion.)I think that the following modules do not satisfy this condition: they return information that is not specific to the host machine, but bound to an API account. Please verify whether this is actually the case.
To fix this, the core team thinks the best approach is to rename the
_facts
modules to_info
modules, and change the return value so that if the module is called with the_facts
name (should be deprecated, and will then be removed in Ansible 2.13), it should returnansible_facts
as now (and print a deprecation message), and if it is called with the_info
name, it no longer returnsansible_facts
, so that the result needs to be registered. This informs users that they have to change something, won't break their playbooks, and allows them (by switching to the_info
names) to verify that their roles and playbooks no longer use the facts.If that approach doesn't work, or you want to change the module's interface (like rename the return value(s)), it is better to deprecate the
_facts
module and create a new_info
module next to it. To see both approaches implemented, you can take a look at 2d98734 (#60178).If you have any input — preferred method to solve this, doubts that all modules should be renamed, ... — please write it here!
ISSUE TYPE
COMPONENT NAME
purefa_facts
purefb_facts
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: