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 committed Apr 24, 2024
1 parent 124d031 commit 38d8ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/package_facts.py
Expand Up @@ -440,7 +440,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 38d8ce8

Please sign in to comment.