mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31429 from mcalmer/fix-refresh-arguments
fix argument handling for pkg.download
This commit is contained in:
commit
ec01b994bd
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue