Don't display imported sites in the RSpec
authorAndy Bavier <acb@cs.princeton.edu>
Thu, 12 Nov 2009 19:58:46 +0000 (19:58 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Thu, 12 Nov 2009 19:58:46 +0000 (19:58 +0000)
sfa/rspecs/aggregates/vini/utils.py

index b5bfa5c..1704528 100644 (file)
@@ -560,12 +560,12 @@ class Topology:
     """
     def toxml(self, hrn = None):
         xml = """<?xml version="1.0"?>
-<RSpec xmlns="http://www.planet-lab.org/sfa/rspec/" name="vini">
+<RSpec name="vini">
     <Capacity>
         <NetSpec name="physical_topology">"""
 
         for site in self.getSites():
-            if not (site.public and site.enabled):
+            if not (site.public and site.enabled and site.node_ids):
                 continue
             
             xml += """