From: Thierry Parmentelat Date: Wed, 22 Sep 2010 06:57:32 +0000 (+0200) Subject: checks that remote persons don't have a site affiliation (warning) X-Git-Tag: myplc-5.0-10~3 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=3464430af6a77a38816ba7bc5b69afc90e263edf checks that remote persons don't have a site affiliation (warning) --- 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]