git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdb886
)
Don't show peer sites in RSpec
author
Andy Bavier
<acb@cs.princeton.edu>
Mon, 12 Oct 2009 15:40:45 +0000
(15:40 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Mon, 12 Oct 2009 15:40:45 +0000
(15:40 +0000)
sfa/rspecs/aggregates/vini/utils.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/aggregates/vini/utils.py
b/sfa/rspecs/aggregates/vini/utils.py
index
9845500
..
c5fa4dc
100644
(file)
--- a/
sfa/rspecs/aggregates/vini/utils.py
+++ b/
sfa/rspecs/aggregates/vini/utils.py
@@
-219,6
+219,7
@@
class Site:
self.name = site['abbreviated_name'].replace(" ", "_")
self.tag = site['login_base']
self.public = site['is_public']
+ self.enabled = site['enabled']
self.links = set()
def get_sitenodes(self, nodes):
@@
-564,7
+565,7
@@
class Topology:
<NetSpec name="physical_topology">"""
for site in self.getSites():
- if not
site.public
:
+ if not
(site.public and site.enabled)
:
continue
xml += """