From 9755deb3cf7602dd425fdf28d4f8b261b7c1ccab Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 24 Nov 2008 16:39:20 +0000 Subject: [PATCH] stores KEY_RENEWAL_DATE for information in plnode.txt --- PLC/Methods/GetBootMedium.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index d556525..0b902d2 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -3,6 +3,7 @@ import random import base64 import os import os.path +import time from PLC.Faults import * from PLC.Method import Method @@ -174,6 +175,7 @@ class GetBootMedium(Method): if renew_key: file += 'NODE_ID="%d"\n' % node['node_id'] file += 'NODE_KEY="%s"\n' % node['key'] + file += 'KEY_RENEWAL_DATE="%s"\n' % time.strftime('%Y-%m-%d at %H:%M:%S +0000',time.gmtime()) if primary['mac']: file += 'NET_DEVICE="%s"\n' % primary['mac'].lower() -- 2.43.0