component_manager_id should be a urn not hrn
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 9 Jul 2011 21:48:56 +0000 (17:48 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 9 Jul 2011 21:48:56 +0000 (17:48 -0400)
sfa/rspecs/sfa_rspec.py

index 5eb34ed..57c626b 100755 (executable)
@@ -65,6 +65,7 @@ class SfaRSpec(RSpec):
 
         nodes = [node.strip() for node in nodes]
         return nodes     
+
     def get_nodes_without_slivers(self, network=None): 
         xpath_nodes_without_slivers = '//node[not(sliver)]/hostname/text()'
         xpath_nodes_without_slivers_in_network = '//network[@name="%s"]//node[not(sliver)]/hostname/text()' 
@@ -210,7 +211,7 @@ class SfaRSpec(RSpec):
                      
             node_tag = etree.SubElement(network_tag, 'node')
             if 'network' in node:
-                node_tag.set('component_manager_id', network)
+                node_tag.set('component_manager_id', hrn_to_urn(network, 'authority+sa'))
             if 'urn' in node:
                 node_tag.set('component_id', node['urn']) 
             if 'site_urn' in node: