check-hrns: external sites starts with "sfa:"
authorMohamed Larabi <mohamed.larabi@inria.fr>
Thu, 7 Nov 2013 15:39:29 +0000 (16:39 +0100)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Thu, 7 Nov 2013 15:39:29 +0000 (16:39 +0100)
bin/check-hrns.py

index e896182..8899fd2 100755 (executable)
@@ -103,7 +103,7 @@ Example:
     # optimizing : we compute the set of sites only once
     sites = GetSites({'peer_id':None},['site_id','login_base','node_ids','person_ids','name','hrn'])
     # remove external sites created through SFA
-    sites = [site for site in sites if not site['name'].startswith('sfa.')]
+    sites = [site for site in sites if not site['name'].startswith('sfa:')]
 
     sites_by_id = dict ( [ (site['site_id'], site) for site in sites ] )
     if options.nodes: handle_nodes(sites,sites_by_id,dry_run,verbose)