mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26921 from terminalmage/legacy_git_pillar_tests
Get rid of error in legacy git pillar when using branch mapping notation
This commit is contained in:
commit
757d3c4eab
1 changed files with 2 additions and 0 deletions
|
@ -316,6 +316,8 @@ class _LegacyGitPillar(object):
|
|||
branch = opts.get('environment') or 'base'
|
||||
if branch == 'base':
|
||||
branch = opts.get('gitfs_base') or 'master'
|
||||
elif ':' in branch:
|
||||
branch = branch.split(':', 1)[0]
|
||||
return branch
|
||||
|
||||
def update(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue