mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
* apk: fix packages return value for apk-tools >= 3 (fix #11264) * Add changelog fragment
This commit is contained in:
parent
ac37544c53
commit
d424907172
3 changed files with 12 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
def parse_for_packages(stdout):
|
||||
packages = []
|
||||
data = stdout.split("\n")
|
||||
regex = re.compile(r"^\(\d+/\d+\)\s+\S+\s+(\S+)")
|
||||
regex = re.compile(r"^\(\s*\d+/\d+\)\s+\S+\s+(\S+)")
|
||||
for l in data:
|
||||
p = regex.search(l)
|
||||
if p:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue