mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use kwargs instead of directly named parameters
This commit is contained in:
parent
7d095491d9
commit
2c22e794d4
1 changed files with 3 additions and 2 deletions
|
@ -951,12 +951,12 @@ def refresh_pillar():
|
|||
pillar_refresh = salt.utils.functools.alias_function(refresh_pillar, 'pillar_refresh')
|
||||
|
||||
|
||||
def refresh_modules(asynchronous=True):
|
||||
def refresh_modules(**kwargs):
|
||||
'''
|
||||
Signal the minion to refresh the module and grain data
|
||||
|
||||
The default is to refresh module asynchronously. To block
|
||||
until the module refresh is complete, set the 'asynchronous' flag
|
||||
until the module refresh is complete, set the 'async' flag
|
||||
to False.
|
||||
|
||||
CLI Example:
|
||||
|
@ -965,6 +965,7 @@ def refresh_modules(asynchronous=True):
|
|||
|
||||
salt '*' saltutil.refresh_modules
|
||||
'''
|
||||
asynchronous = bool(kwargs.get('async', True))
|
||||
try:
|
||||
if asynchronous:
|
||||
# If we're going to block, first setup a listener
|
||||
|
|
Loading…
Add table
Reference in a new issue