mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #26649 from twangboy/fix_win_repo
Fixed Lint for real in win_repo.py
This commit is contained in:
commit
dca15817fa
@ -18,7 +18,7 @@ import salt.output
|
||||
import salt.utils
|
||||
import salt.loader
|
||||
import salt.template
|
||||
from salt.exceptions import CommandExecutionError
|
||||
from salt.exceptions import CommandExecutionError, SaltRenderError
|
||||
from salt.runners.winrepo import (
|
||||
genrepo as _genrepo,
|
||||
update_git_repos as _update_git_repos
|
||||
@ -165,7 +165,7 @@ def show_sls(name, saltenv='base'):
|
||||
__opts__['renderer'])
|
||||
|
||||
# Dump return the error if any
|
||||
except SaltRenderError as exc: # pylint: disable=E0602
|
||||
except SaltRenderError as exc:
|
||||
log.debug('Failed to compile {0}.'.format(sls_file))
|
||||
log.debug('Error: {0}.'.format(exc))
|
||||
config['Message'] = 'Failed to compile {0}'.format(sls_file)
|
||||
|
Loading…
Reference in New Issue
Block a user