package_facts: apk fix when cache is empty (#83132)

pull/83212/head
Florian 1 month ago committed by GitHub
parent 504bdae894
commit 45a30ab093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
---
bugfixes:
- package_facts - apk fix when cache is empty (https://github.com/ansible/ansible/issues/83126).

@ -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()

Loading…
Cancel
Save