mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Catch the unset (empty/None) environment case
This commit is contained in:
parent
6d42f30271
commit
6dedeaccd2
1 changed files with 2 additions and 2 deletions
|
@ -179,9 +179,9 @@ class GitPillar(object):
|
|||
def map_branch(self, branch, opts=None):
|
||||
opts = __opts__ if opts is None else opts
|
||||
if branch == '__env__':
|
||||
branch = opts.get('environment', 'base')
|
||||
branch = opts.get('environment') or 'base'
|
||||
if branch == 'base':
|
||||
branch = opts.get('gitfs_base', 'master')
|
||||
branch = opts.get('gitfs_base') or 'master'
|
||||
return branch
|
||||
|
||||
def update(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue