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:
Daniel Wallace 2017-08-02 14:30:18 -06:00
parent bb1dfd4a42
commit 683561a711

View file

@ -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: