mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix linter by ignoring async await check.
This commit is contained in:
parent
396622c2b0
commit
c0aa4dc837
1 changed files with 2 additions and 2 deletions
|
@ -908,7 +908,7 @@ def refresh_pillar():
|
|||
pillar_refresh = salt.utils.alias_function(refresh_pillar, 'pillar_refresh')
|
||||
|
||||
|
||||
def refresh_modules(async=True):
|
||||
def refresh_modules(async=True): # pylint: disable=W8606
|
||||
'''
|
||||
Signal the minion to refresh the module and grain data
|
||||
|
||||
|
@ -923,7 +923,7 @@ def refresh_modules(async=True):
|
|||
salt '*' saltutil.refresh_modules
|
||||
'''
|
||||
try:
|
||||
if async:
|
||||
if async: # pylint: disable=W8606
|
||||
# If we're going to block, first setup a listener
|
||||
ret = __salt__['event.fire']({}, 'module_refresh')
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue