git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
756d13b
)
check_hrns.py: external Sites are tagged with sfa_created=='True'
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 5 Dec 2013 12:58:39 +0000
(13:58 +0100)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 5 Dec 2013 12:58:39 +0000
(13:58 +0100)
bin/check-hrns.py
patch
|
blob
|
history
diff --git
a/bin/check-hrns.py
b/bin/check-hrns.py
index
8febdee
..
1ca6cdf
100755
(executable)
--- a/
bin/check-hrns.py
+++ b/
bin/check-hrns.py
@@
-108,9
+108,9
@@
Example:
dry_run=options.show
verbose=options.verbose
# optimizing : we compute the set of sites only once
dry_run=options.show
verbose=options.verbose
# optimizing : we compute the set of sites only once
- sites = GetSites({'peer_id':None},['site_id','login_base','node_ids','person_ids','name','hrn','slice_ids'])
+ sites = GetSites({'peer_id':None},['site_id','login_base','node_ids','person_ids','name','hrn','slice_ids'
, 'sfa_created'
])
# remove external sites created through SFA
# 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
site['sfa_created'] != 'True'
]
sites_by_id = dict ( [ (site['site_id'], site) for site in sites ] )
if options.nodes: handle_nodes(sites,sites_by_id,dry_run,verbose)
sites_by_id = dict ( [ (site['site_id'], site) for site in sites ] )
if options.nodes: handle_nodes(sites,sites_by_id,dry_run,verbose)