mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
4d74aa05a8
* Fix linode inventory filtering
There was a regression introduced in the addition of caching. The
`_consume_options` method was added and provided the `config_data`
dictionary. This `pop`s every entry, resulting in an empty `config_data`
dict, which was then reused and expected to be populated.
After reviewing, `_consume_data` doesn't need to be called. Also, once
the ``_read_config_data` method has been called, we no longer need the
config_data dict, and can instead use the `get_option` method throughout.
Once those were removed, the filtering function seemed a bit odd, since
we were no longer using the file. I used that opportunity to move the
filter calls into the populate function directly.
* Remove tests that target removed methods
This removes tests that targeted some custom methods on configuration
file handling. These are no longer necessary since they are now handled
by the BaseInventoryPlugin `_read_config_data` method.
* Add changelog entry for linode inventory bugfix
* Revert filters back to their own method
This moves filters back into their own method, but now uses the
get_option calls to pull filter configuration items.
(cherry picked from commit
|
||
---|---|---|
.. | ||
.keep | ||
3295-mksysb-revamp.yaml | ||
4108-nmcli-support-modifcation-without-type-param.yml | ||
4192-zypper-add-clean-deps.yml | ||
4207-add-redis-tls-support.yml | ||
4223-syslog-json-skip-syslog-option.yml | ||
4275-pacman-sysupgrade.yml | ||
4281-terraform-complex-variables.yml | ||
4286-pacman-url-pkgs.yml | ||
4287-fix-proxmox-vm-chek.yml | ||
4288-fix-4259-support-busybox-dd.yml | ||
4299-npm-add-production-with-ci-flag.yml | ||
4303-pipx-editable.yml | ||
4304-jira-fields-in-comment.yml | ||
4306-proxmox-fix-error-on-vm-clone.yml | ||
4312-pacman-groups.yml | ||
4316-pacman-remove-nosave.yml | ||
4318-pacman-restore-old-changed-behavior.yml | ||
4330-pacman-packages-update_cache.yml | ||
4336-linode-inventory-filtering.yaml |