From 089d72e8cfb733ff521356fd08e09a6e32b45dcd Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 11 Mar 2010 22:26:49 +0000 Subject: [PATCH] dont forget to define shell in remove_node --- PLC/Peers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PLC/Peers.py b/PLC/Peers.py index e78f568..13eaabc 100644 --- a/PLC/Peers.py +++ b/PLC/Peers.py @@ -178,6 +178,11 @@ class Peer(Row): remove = Row.remove_object(Node, 'peer_node') remove(self, node, commit) + + # calling UpdateNode with the node's hostname + # will force the 'hrn' tag to be updated with the + # correct root auth + shell = Shell() UpdateNode = self.api.callable('UpdateNode') UpdateNode(shell.auth, node['node_id'], {'hostname': node['hostname']}) -- 2.43.0