diff --git a/old/v1.3/integrationCommon.py b/old/v1.3/integrationCommon.py index 710713ef..c70aa085 100644 --- a/old/v1.3/integrationCommon.py +++ b/old/v1.3/integrationCommon.py @@ -134,7 +134,7 @@ class NetworkGraph: node.parentId = self.exceptionCPEs[node.displayName] self.nodes.append(node) - def replaceRootNote(self, node: NetworkNode) -> None: + def replaceRootNode(self, node: NetworkNode) -> None: # Replaces the automatically generated root node # with a new node. Useful when you have a top-level # node specified (e.g. "uispSite" in the UISP diff --git a/old/v1.3/integrationUISP.py b/old/v1.3/integrationUISP.py index b3f67fc4..48ba0b9d 100644 --- a/old/v1.3/integrationUISP.py +++ b/old/v1.3/integrationUISP.py @@ -145,7 +145,7 @@ def buildFullGraph(): # If this is the uispSite node, it becomes the root. Otherwise, add it to the # node soup. if name == uispSite: - net.replaceRootNote(node) + net.replaceRootNode(node) else: net.addRawNode(node) diff --git a/old/v1.3/testGraph.py b/old/v1.3/testGraph.py index e127ac37..0ce07dc8 100644 --- a/old/v1.3/testGraph.py +++ b/old/v1.3/testGraph.py @@ -53,7 +53,7 @@ class TestGraph(unittest.TestCase): from integrationCommon import NetworkGraph, NetworkNode, NodeType graph = NetworkGraph() node = NetworkNode("Test", type = NodeType.site) - graph.replaceRootNote(node) + graph.replaceRootNode(node) self.assertEqual(graph.nodes[0].id, "Test") def add_child_by_named_parent(self): diff --git a/src/integrationCommon.py b/src/integrationCommon.py index 943ad889..33f20e31 100644 --- a/src/integrationCommon.py +++ b/src/integrationCommon.py @@ -135,7 +135,7 @@ class NetworkGraph: node.parentId = self.exceptionCPEs[node.displayName] self.nodes.append(node) - def replaceRootNote(self, node: NetworkNode) -> None: + def replaceRootNode(self, node: NetworkNode) -> None: # Replaces the automatically generated root node # with a new node. Useful when you have a top-level # node specified (e.g. "uispSite" in the UISP diff --git a/src/integrationUISP.py b/src/integrationUISP.py index fdddea6e..36937fb7 100644 --- a/src/integrationUISP.py +++ b/src/integrationUISP.py @@ -176,7 +176,7 @@ def buildFullGraph(): # If this is the uispSite node, it becomes the root. Otherwise, add it to the # node soup. if name == uispSite: - net.replaceRootNote(node) + net.replaceRootNode(node) else: net.addRawNode(node) diff --git a/src/testGraph.py b/src/testGraph.py index e127ac37..0ce07dc8 100644 --- a/src/testGraph.py +++ b/src/testGraph.py @@ -53,7 +53,7 @@ class TestGraph(unittest.TestCase): from integrationCommon import NetworkGraph, NetworkNode, NodeType graph = NetworkGraph() node = NetworkNode("Test", type = NodeType.site) - graph.replaceRootNote(node) + graph.replaceRootNode(node) self.assertEqual(graph.nodes[0].id, "Test") def add_child_by_named_parent(self):