mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
BUG FIX: Add package name to the cmd.
This commit is contained in:
@@ -73,7 +73,7 @@ author: Patrick Callahan
|
||||
# Function used for getting the name of a currently installed package.
|
||||
def get_current_name(m, name):
|
||||
cmd = '/bin/rpm -q --qf \'%{NAME}-%{VERSION}\''
|
||||
(rc, stdout, stderr) = m.run_command("%s" % (cmd))
|
||||
(rc, stdout, stderr) = m.run_command("%s %s" % (cmd, name))
|
||||
|
||||
if rc != 0:
|
||||
return (rc, stdout, stderr)
|
||||
|
||||
Reference in New Issue
Block a user