fix bug
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 29 Apr 2011 13:08:58 +0000 (09:08 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 29 Apr 2011 13:08:58 +0000 (09:08 -0400)
sfa/rspecs/sfa_rspec.py

index 30026ac..4f89cd8 100755 (executable)
@@ -32,11 +32,11 @@ class SfaRSpec(RSpec):
         return None
  
     def get_node_elements(self):
-        return self.xml.xpath('//node', self.namespaces)
+        return self.xml.xpath('//node')
 
     def get_nodes(self, network=None):
         if network == None:
-            nodes = self.xml.xpath('//node/hostname/text()', self.namespaces)
+            nodes = self.xml.xpath('//node/hostname/text()')
         else:
             nodes = self.xml.xpath('//network[@name="%s"]//node/hostname/text()' % network, self.namespaces)
         return nodes