stores KEY_RENEWAL_DATE for information in plnode.txt
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 24 Nov 2008 16:39:20 +0000 (16:39 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 24 Nov 2008 16:39:20 +0000 (16:39 +0000)
PLC/Methods/GetBootMedium.py

index d556525..0b902d2 100644 (file)
@@ -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()