Skip to content

Commit

Permalink
package_facts: apk fix when cache is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
geckoflume authored and Akasurde committed May 6, 2024
1 parent 504bdae commit 8d11eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/apk_package_facts.yml
@@ -0,0 +1,3 @@
---
bugfixes:
- package_facts - apk fix when cache is empty (https://github.com/ansible/ansible/issues/83126).
2 changes: 1 addition & 1 deletion lib/ansible/modules/package_facts.py
Expand Up @@ -460,7 +460,7 @@ class APK(CLIMgr):

def list_installed(self):
rc, out, err = module.run_command([self._cli, 'info', '-v'])
if rc != 0 or err:
if rc != 0:
raise Exception("Unable to list packages rc=%s : %s" % (rc, err))
return out.splitlines()

Expand Down

0 comments on commit 8d11eb0

Please sign in to comment.