From: Thierry Parmentelat Date: Mon, 24 Nov 2008 16:39:20 +0000 (+0000) Subject: stores KEY_RENEWAL_DATE for information in plnode.txt X-Git-Tag: PLCAPI-4.3-2~15 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9755deb3cf7602dd425fdf28d4f8b261b7c1ccab;hp=9d7d72a7b743b58defe3365d854192dd344cafeb;p=plcapi.git stores KEY_RENEWAL_DATE for information in plnode.txt --- 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()