Let's try to fix __env__ for gitstack

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2020-07-12 15:26:32 +01:00
parent 3324b45ef1
commit 4493c80560
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -89,7 +89,7 @@ def ext_pillar(minion_id, pillar, *repos, **single_repo_conf):
init_gitpillar_args.append(salt.pillar.git_pillar.GLOBAL_ONLY)
# Initialize GitPillar object
gitpillar = salt.utils.gitfs.GitPillar(opts, *init_gitpillar_args)
gitpillar = salt.utils.gitfs.GitPillar(opts, *init_gitpillar_args, role="git_pillar")
else:
# Include GLOBAL_ONLY args for Salt versions that require it
@ -97,7 +97,7 @@ def ext_pillar(minion_id, pillar, *repos, **single_repo_conf):
init_gitpillar_args.append(salt.pillar.git_pillar.GLOBAL_ONLY)
# Initialize GitPillar object
gitpillar = salt.utils.gitfs.GitPillar(opts)
gitpillar = salt.utils.gitfs.GitPillar(opts, role="git_pillar")
gitpillar.init_remotes(*init_gitpillar_args)