mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-06-09 18:15:54 +00:00
fixes based on feedback
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -76,7 +76,7 @@ from ansible.module_utils._text import to_text
|
||||
|
||||
|
||||
def locally_installed(module, pkgname):
|
||||
(rc, out, err) = module.run_command('rpm -q {0}'.format(pkgname).split())
|
||||
(rc, out, err) = module.run_command('{0} -q {1}'.format(module.get_bin_path("rpm"), pkgname).split())
|
||||
return (rc == 0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user