From: Tony Mack Date: Thu, 11 Mar 2010 22:26:49 +0000 (+0000) Subject: dont forget to define shell in remove_node X-Git-Tag: PLCAPI-5.0-3^2~13 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=089d72e8cfb733ff521356fd08e09a6e32b45dcd;hp=b4b902d85a7966403dc09cc1c3f0da8a07b7a1e9;p=plcapi.git dont forget to define shell in remove_node --- 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']})