Merge pull request #31429 from mcalmer/fix-refresh-arguments

fix argument handling for pkg.download
This commit is contained in:
Mike Place 2016-02-23 08:48:23 -07:00
commit ec01b994bd

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.")