X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=findbadpcu.py;h=9eb3be70fccb57cb08131a636a066375a4e74170;hb=8814d16dc60e8027c9a30963b47dd77b54efcdbf;hp=ab4f5ff81077165eb618943d9a0e5625eaae0a79;hpb=c9d06f3b274ecbc092a0b3eb1f5ceb6c0f734aad;p=monitor.git diff --git a/findbadpcu.py b/findbadpcu.py index ab4f5ff..9eb3be7 100755 --- a/findbadpcu.py +++ b/findbadpcu.py @@ -103,10 +103,9 @@ def main(): l_pcus = [pcu for pcu in sets.Set(pcus)] elif config.node is not None: - l_nodes = plcacche.GetNodeByName(config.node) - pcus = [] - for node in l_nodes: - pcus += node['pcu_ids'] + node = plccache.GetNodeByName(config.node) + print node + pcus = node['pcu_ids'] # clear out dups. l_pcus = [pcu for pcu in sets.Set(pcus)]