mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
BUG FIX: Add package name to the cmd.
This commit is contained in:
parent
79b56667e3
commit
c1ec8ead6c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ author: Patrick Callahan
|
||||||
# Function used for getting the name of a currently installed package.
|
# Function used for getting the name of a currently installed package.
|
||||||
def get_current_name(m, name):
|
def get_current_name(m, name):
|
||||||
cmd = '/bin/rpm -q --qf \'%{NAME}-%{VERSION}\''
|
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:
|
if rc != 0:
|
||||||
return (rc, stdout, stderr)
|
return (rc, stdout, stderr)
|
||||||
|
|
Loading…
Reference in a new issue