File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
tests/integration/targets/apk/tasks Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ bugfixes :
3+ - apk - fix ``packages`` return value for apk-tools >= 3 (Alpine 3.23) (https://github.com/ansible-collections/community.general/issues/11264).
Original file line number Diff line number Diff line change 174174def parse_for_packages (stdout ):
175175 packages = []
176176 data = stdout .split ("\n " )
177- regex = re .compile (r"^\(\d+/\d+\)\s+\S+\s+(\S+)" )
177+ regex = re .compile (r"^\(\s*\ d+/\d+\)\s+\S+\s+(\S+)" )
178178 for l in data :
179179 p = regex .search (l )
180180 if p :
Original file line number Diff line number Diff line change 8989 - less
9090 - nano
9191 - vim
92+ - bash
93+ - bash-completion
94+ - bash-completion-doc
95+ - zsh
96+ - zsh-calendar
97+ - zsh-completions
98+ - zsh-doc
9299 state : present
93100 register : results
94101
95102 - name : Ensure a bunch of packages were installed
96103 ansible.builtin.assert :
97104 that :
98105 - results is changed
99- - (results.packages | length) >= 3
106+ - (results.packages | length) >= 10
100107
101108 - name : Install a bunch of packages again
102109 community.general.apk :
You can’t perform that action at this time.
0 commit comments