X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=findbadpcu.py;h=070ddacb2b60a8d563d08e9b3c82490485a96503;hb=21f8190281cfb38c3e24dfba6c89420830435f1f;hp=8ebd8914806cd965cde1228b04f845a4d92a579f;hpb=d389a66c8cc1819095018e741352aff301cfcb4c;p=monitor.git diff --git a/findbadpcu.py b/findbadpcu.py index 8ebd891..070ddac 100755 --- a/findbadpcu.py +++ b/findbadpcu.py @@ -361,12 +361,6 @@ def main(): global_round = fbsync.round - if config.increment: - # update global round number to force refreshes across all nodes - global_round += 1 - fbsync.round = global_round - - fbsync.flush() if config.site is not None: api = plc.getAuthAPI() @@ -379,6 +373,7 @@ def main(): l_pcus = [pcu for pcu in sets.Set(pcus)] elif config.pcuselect is not None: n, pcus = pcu_select(config.pcuselect) + print pcus # clear out dups. l_pcus = [pcu for pcu in sets.Set(pcus)] @@ -392,6 +387,12 @@ def main(): l_pcus = [ config.pcuid ] l_pcus = [int(pcu) for pcu in l_pcus] + if config.increment: + # update global round number to force refreshes across all nodes + global_round += 1 + fbsync.round = global_round + fbsync.flush() + checkAndRecordState(l_pcus, cohash) return 0