From f3c9e56d0c9427ff4cd8551e3d037531843fc033 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 25 Nov 2008 07:54:43 +0000 Subject: [PATCH] fix event logging --- PLC/Methods/GetBootMedium.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 6e736b7..f2677b0 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -177,7 +177,7 @@ class GetBootMedium(Method): file += 'NODE_ID="%d"\n' % node['node_id'] file += 'NODE_KEY="%s"\n' % node['key'] # not used anywhere, just a note for operations people - file += 'KEY_RENEWAL_DATE="%s"\n' % time.strftime('%Y-%m-%d at %H:%M:%S +0000',time.gmtime()) + file += 'KEY_RENEWAL_DATE="%s"\n' % time.strftime('%Y/%m/%d at %H:%M +0000',time.gmtime()) if primary['mac']: file += 'NET_DEVICE="%s"\n' % primary['mac'].lower() @@ -363,7 +363,7 @@ class GetBootMedium(Method): # log call if node: self.message='GetBootMedium on node %s - action=%s'%(nodename,action) - self.event_objects={'Node': [ node ]} + self.event_objects={'Node': [ node ['node_id'] ]} else: self.message='GetBootMedium - generic - action=%s'%action -- 2.43.0