mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fixes potential ext_pillar line mismatches
This commit is contained in:
parent
25c11744d8
commit
78b6550f9b
@ -102,9 +102,9 @@ class GitPillar(object):
|
||||
self.working_dir = ''
|
||||
self.repo = None
|
||||
|
||||
needle = '{0} {1}'.format(self.branch, self.rp_location)
|
||||
for idx, opts_dict in enumerate(self.opts['ext_pillar']):
|
||||
if opts_dict.get('git', '').startswith(needle):
|
||||
lopts = opts_dict.get('git', '').split()
|
||||
if len(lopts) >= 2 and lopts[:2] == [self.branch, self.rp_location]:
|
||||
rp_ = os.path.join(self.opts['cachedir'],
|
||||
'pillar_gitfs', str(idx))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user