From 2f77e84cea805ce9f44a471aab3ebaf2cee8d1a9 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 12 Dec 2012 09:03:20 +0100 Subject: [PATCH] cosmetic --- PLC/Methods/UpdateNode.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PLC/Methods/UpdateNode.py b/PLC/Methods/UpdateNode.py index c09e10c9..973dbb92 100644 --- a/PLC/Methods/UpdateNode.py +++ b/PLC/Methods/UpdateNode.py @@ -9,8 +9,6 @@ from PLC.Sites import Sites from PLC.Nodes import Node, Nodes from PLC.TagTypes import TagTypes from PLC.NodeTags import NodeTags, NodeTag -from PLC.Methods.AddNodeTag import AddNodeTag -from PLC.Methods.UpdateNodeTag import UpdateNodeTag admin_only = [ 'key', 'session', 'boot_nonce', 'site_id'] can_update = ['hostname', 'node_type', 'boot_state', 'model', 'version'] + admin_only @@ -112,6 +110,7 @@ class UpdateNode(Method): node_tag = node_tags[0] node_tag['value'] = value node_tag.sync() + # Logging variables self.event_objects = {'Node': [node['node_id']]} if 'hostname' in node: -- 2.47.0