X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bin%2Fspot-aliens.py;h=24826346487c68f1baf5fff08c2a86178c932f2b;hb=3464430af6a77a38816ba7bc5b69afc90e263edf;hp=0ee947ed5b797520c81eab7140a2f4eb6675a7d9;hpb=d49a8b68b20c91232ba845440fecfc3070b0a389;p=myplc.git diff --git a/bin/spot-aliens.py b/bin/spot-aliens.py index 0ee947e..2482634 100755 --- a/bin/spot-aliens.py +++ b/bin/spot-aliens.py @@ -39,3 +39,11 @@ for person in all_persons: print "PERSON-KEY mismatch %r & KEY %r"%(person,key) +### check that foreign persons don't have a site +# funny thing is, this actually populates stuff properly +# but the usual refreshpeer does not provide this data, so.. +for person in all_persons: + if person['peer_id'] and person['site_ids']: + print "WARNING Foreign person %r attached on sites:"%person + for site_id in person['site_ids']: + print " %r"%site_hash[site_id]