Merge pull request #27596 from blueyed/fix-gitfs-UnboundLocalError

gitfs: fix UnboundLocalError for 'msg'
This commit is contained in:
Erik Johnson 2015-10-05 15:18:00 -05:00
commit 3ffb5a3369

View file

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