Bug #38137
closedDo not double-escape "*" during package update
Description
What are the changes introduced in this pull request?
Update the "Update packages by search query - Katello Ansible Default" template to pass a simple * instead of "*" to the upstream "Package Action - Ansible Default" template. This makes it possible to upgrade all packages via Ansible using Katello 4.14 (and other versions).
The current template is erroring out:
fatal: [test-vm-01.example.org]: FAILED! => {"changed": false, "failures": ["No package \"*\" available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
Considerations taken when implementing this change?
I tried to fix this as early as possible in the template call tree, to keep the change as minimal as possible.
The change has been working well on my production for a while. Most likely other users have heavier customizations to the scripts.
What are the testing steps for this pull request?
Configure Foreman/Katello to use Ansible for all actions
Select all upgradable packages for a host in the UI, and "Upgrade" all the packages through REX
It updates all packages and doesn't fail
Updated by The Foreman Bot 2 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11273 added
Updated by Lucas souza 1 day ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|fcd6cdb830fe3a77c342752203cd2f9af618c688.