Fix linter by ignoring async await check.

This commit is contained in:
Daniel Wozniak 2019-02-13 14:01:34 -07:00 committed by Daniel A. Wozniak
parent 396622c2b0
commit c0aa4dc837
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -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: