summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-12-10 15:30:56 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-12-10 15:30:56 (GMT)
commit7e808fb2aeaa1f3855ac4261f589198d839e38cd (patch)
treed79287c81b0908736db4adbfc00ad9270e0b399e
parentac4fda99beb861d844af1ccc58e3138ddbcd5169 (diff)
downloadmisc-fred-7e808fb2aeaa1f3855ac4261f589198d839e38cd.zip
misc-fred-7e808fb2aeaa1f3855ac4261f589198d839e38cd.tar.gz
misc-fred-7e808fb2aeaa1f3855ac4261f589198d839e38cd.tar.bz2
eoptasks: randomize servers
-rwxr-xr-xeoptasks/eoptasks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py
index 097a4d8..2fe08aa 100755
--- a/eoptasks/eoptasks.py
+++ b/eoptasks/eoptasks.py
@@ -93,6 +93,7 @@ else:
return re.match(r'(.*?)(\d*)$', server_name).group(1).replace(
'.rbx.', '.loc.').replace('.gra.', '.loc.').replace('.sbg.', '.loc.')
+ random.shuffle(selected_servers)
while selected_servers:
current_clusters = [cluster_name(x.name) for x in session.list_windows()]
for server in selected_servers[:]: