mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
use set notation instead of iteration
This commit is contained in:
parent
109985d5a3
commit
e25037f08f
@ -16,10 +16,7 @@ def down():
|
||||
minions = client.cmd('*', 'test.ping', timeout=1)
|
||||
keys = key._keys('acc')
|
||||
|
||||
for minion in minions:
|
||||
keys.remove(minion)
|
||||
|
||||
for minion in sorted(keys):
|
||||
for minion in sorted(keys - set(minions.keys())):
|
||||
print minion
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user