diff options
author | Patrick Callahan <pmc@patrickcallahan.com> | 2013-06-08 05:31:21 +0200 |
---|---|---|
committer | Patrick Callahan <pmc@patrickcallahan.com> | 2013-06-08 05:31:21 +0200 |
commit | c1ec8ead6c165b87cce1a045e52f24c150024a56 (patch) | |
tree | 2dd93fe2b9df7b06d989e6ff59be649251c3708e | |
parent | Simple zypper module to install, remove, or upgrades packages. (diff) | |
download | ansible-c1ec8ead6c165b87cce1a045e52f24c150024a56.tar.xz ansible-c1ec8ead6c165b87cce1a045e52f24c150024a56.zip |
BUG FIX: Add package name to the cmd.
-rw-r--r-- | library/packaging/zypper | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/packaging/zypper b/library/packaging/zypper index dcb9e1536c..c1c7d012d5 100644 --- a/library/packaging/zypper +++ b/library/packaging/zypper @@ -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) |