mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use subtraction instead of or
If we use or, we will get minions that are in the ret list, but not connected to the master in cases where the syndic is used.
This commit is contained in:
parent
bb1dfd4a42
commit
683561a711
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ class LocalClient(object):
|
|||
ret[mid] = (data if full_return
|
||||
else data.get('ret', {}))
|
||||
|
||||
for failed in list(set(pub_data['minions']) ^ set(ret)):
|
||||
for failed in list(set(pub_data['minions']) - set(ret)):
|
||||
ret[failed] = False
|
||||
return ret
|
||||
finally:
|
||||
|
|
Loading…
Add table
Reference in a new issue