Skip to content

Commit

Permalink
Merge pull request #25639 from terminalmage/fix-git_pillar-init
Browse files Browse the repository at this point in the history
Don't do pre-flight check on git_pillar if it is not configured
  • Loading branch information
jfindlay committed Jul 22, 2015
2 parents 41b7604 + c492baa commit 76c28da
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions salt/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,13 @@ def _pre_flight(self):
if not self.opts['fileserver_backend']:
errors.append('No fileserver backends are configured')

try:
# Init any values needed by the git ext pillar
salt.utils.gitfs.GitPillar(self.opts)
except FileserverConfigError as exc:
critical_errors.append(exc.strerror)
if any('git' in ext_pillar
for ext_pillar in self.opts.get('ext_pillar', [])):
try:
# Init any values needed by the git ext pillar
salt.utils.gitfs.GitPillar(self.opts)
except FileserverConfigError as exc:
critical_errors.append(exc.strerror)

if errors or critical_errors:
for error in errors:
Expand Down

0 comments on commit 76c28da

Please sign in to comment.