fix argument handling for pkg.download

This commit is contained in:
Michael Calmer 2016-02-23 11:46:09 +01:00
parent fb81e905e4
commit 299c07fa7d

View file

@ -1380,7 +1380,7 @@ def list_products(all=False, refresh=False):
return ret
def download(refresh=False, *packages):
def download(*packages, **kwargs):
"""
Download packages to the local disk.
@ -1396,6 +1396,7 @@ def download(refresh=False, *packages):
salt '*' pkg.download httpd
salt '*' pkg.download httpd postfix
"""
refresh = kwargs.get('refresh', False)
if not packages:
raise CommandExecutionError("No packages has been specified.")