mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Restore old single package query behaviour
This commit is contained in:
parent
2701e15725
commit
a5fb7275d7
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user