Skip to content

Commit

Permalink
Restore old single package query behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Apr 8, 2015
1 parent 2701e15 commit a5fb727
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/modules/zypper.py
Expand Up @@ -171,6 +171,9 @@ def latest_version(*names, **kwargs):
ret_data[k] = pkg_info.get(k)
ret[name] = ret_data

# Return a string if only one package name passed
if len(names) == 1:
return ret[names[0]]['version']
return ret


Expand Down

0 comments on commit a5fb727

Please sign in to comment.