mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Two fixes in _get_envs()
1. Don't get client_envs twice. 2. Don't add 'base' more than once.
This commit is contained in:
parent
ab9a89d6dc
commit
e36d6839d1
@ -2505,8 +2505,8 @@ class BaseHighState(object):
|
|||||||
'''
|
'''
|
||||||
envs = ['base']
|
envs = ['base']
|
||||||
if 'file_roots' in self.opts:
|
if 'file_roots' in self.opts:
|
||||||
envs.extend(list(self.opts['file_roots']))
|
envs.extend([x for x in list(self.opts['file_roots'])
|
||||||
client_envs = self.client.envs()
|
if x not in envs])
|
||||||
env_order = self.opts.get('env_order', [])
|
env_order = self.opts.get('env_order', [])
|
||||||
client_envs = self.client.envs()
|
client_envs = self.client.envs()
|
||||||
if env_order and client_envs:
|
if env_order and client_envs:
|
||||||
|
Loading…
Reference in New Issue
Block a user