Skip to content

Commit

Permalink
fix local change
Browse files Browse the repository at this point in the history
  • Loading branch information
robinro authored and mattclay committed Dec 8, 2016
1 parent e33875e commit 32310a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/extras/packaging/os/zypper.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def zypper_version(module):
return rc, stderr

# Function used for getting versions of currently installed packages.
def get_current_version( packages):
def get_current_version(m, packages):
cmd = ['/bin/rpm', '-q', '--qf', '%{NAME} %{VERSION}-%{RELEASE}\n']
cmd.extend(packages)

stdout = subprocess.check_output(cmd)
rc, stdout, stderr = m.run_command(cmd, check_rc=False)

current_version = {}
rpmoutput_re = re.compile('^(\S+) (\S+)$')
Expand Down

0 comments on commit 32310a4

Please sign in to comment.