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:
Erik Johnson 2016-09-01 22:53:40 -05:00
parent ab9a89d6dc
commit e36d6839d1

View File

@ -2505,8 +2505,8 @@ class BaseHighState(object):
'''
envs = ['base']
if 'file_roots' in self.opts:
envs.extend(list(self.opts['file_roots']))
client_envs = self.client.envs()
envs.extend([x for x in list(self.opts['file_roots'])
if x not in envs])
env_order = self.opts.get('env_order', [])
client_envs = self.client.envs()
if env_order and client_envs: