From fc619225237e38276c0aa6c8eda71f9c562f3e91 Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@paris.CS.Princeton.EDU>
Date: Sat, 9 Jul 2011 17:48:56 -0400
Subject: [PATCH] component_manager_id should be a urn not hrn

---
 sfa/rspecs/sfa_rspec.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sfa/rspecs/sfa_rspec.py b/sfa/rspecs/sfa_rspec.py
index 5eb34ed7..57c626bc 100755
--- a/sfa/rspecs/sfa_rspec.py
+++ b/sfa/rspecs/sfa_rspec.py
@@ -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:
-- 
2.47.0