From 9ee330906a229043416aad018e5f316c92367375 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 7 Nov 2011 13:57:57 -0500 Subject: [PATCH] set authority_id in get_nodes() --- sfa/rspecs/elements/versions/sfav1Node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/rspecs/elements/versions/sfav1Node.py b/sfa/rspecs/elements/versions/sfav1Node.py index b8fe27ef..1cd03e9b 100644 --- a/sfa/rspecs/elements/versions/sfav1Node.py +++ b/sfa/rspecs/elements/versions/sfav1Node.py @@ -55,7 +55,6 @@ class SFAv1Node: for field in Location.fields: if field in node['location'] and node['location'][field]: location_elem.set(field, node['location'][field]) - if 'interfaces' in node and node['interfaces']: i = 0 for interface in node['interfaces']: @@ -92,7 +91,9 @@ class SFAv1Node: node = Node(node_elem.attrib, node_elem) if 'site_id' in node_elem.attrib: node['authority_id'] = node_elem.attrib['site_id'] - + if 'authority_id' in node_elem.attrib: + node['authority_id'] = node_elem.attrib['authority_id'] + # set the location location_elems = node_elem.xpath(SFAv1Node.elements['location'].path, xml.namespaces) if len(location_elems) > 0: -- 2.43.0