mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #31429 from mcalmer/fix-refresh-arguments
fix argument handling for pkg.download
This commit is contained in:
commit
ec01b994bd
@ -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.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user