mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #27596 from blueyed/fix-gitfs-UnboundLocalError
gitfs: fix UnboundLocalError for 'msg'
This commit is contained in:
commit
3ffb5a3369
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,7 @@ class GitProvider(object):
|
|||
)
|
||||
log.critical(msg)
|
||||
else:
|
||||
log.critical(
|
||||
msg = (
|
||||
'Invalid {0} configuration parameter \'{1}\' in '
|
||||
'remote {2}. Valid parameters are: {3}.'.format(
|
||||
self.role,
|
||||
|
@ -202,6 +202,7 @@ class GitProvider(object):
|
|||
' See the GitFS Walkthrough in the Salt '
|
||||
'documentation for further information.'
|
||||
)
|
||||
log.critical(msg)
|
||||
|
||||
per_remote_errors = True
|
||||
if per_remote_errors:
|
||||
|
|
Loading…
Add table
Reference in a new issue