mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove duplicate client_envs variable definitions
self.client.envs() is called twice and assigned to client_envs and client_env_list. Remove one of both variables since they are not modified before usage. Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
This commit is contained in:
parent
9d0762deca
commit
ec219b5f42
1 changed files with 1 additions and 2 deletions
|
@ -2509,8 +2509,7 @@ class BaseHighState(object):
|
|||
env_order = self.opts.get('env_order', [])
|
||||
client_envs = self.client.envs()
|
||||
if env_order and client_envs:
|
||||
client_env_list = self.client.envs()
|
||||
env_intersection = set(env_order).intersection(client_env_list)
|
||||
env_intersection = set(env_order).intersection(client_envs)
|
||||
final_list = []
|
||||
for ord_env in env_order:
|
||||
if ord_env in env_intersection and ord_env not in final_list:
|
||||
|
|
Loading…
Add table
Reference in a new issue