From 3464430af6a77a38816ba7bc5b69afc90e263edf Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 22 Sep 2010 08:57:32 +0200 Subject: [PATCH] checks that remote persons don't have a site affiliation (warning) --- bin/spot-aliens.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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] -- 2.43.0