dont add in blank networks
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 12 Jul 2011 21:03:14 +0000 (17:03 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 12 Jul 2011 21:03:14 +0000 (17:03 -0400)
sfa/rspecs/sfa_rspec.py

index 16fa3e8..5d8ef07 100755 (executable)
@@ -329,7 +329,7 @@ class SfaRSpec(RSpec):
         networks = rspec.get_network_elements()
         for network in networks:
             current_network = network.get('name')
-            if not current_network in current_networks:
+            if current_network and current_network not in current_networks:
                 self.xml.append(network)
                 current_networks.append(current_network)