Commit 599d611b authored by Yingjie Xu's avatar Yingjie Xu

Record timestamp in each installation.

parent d1770a7c
......@@ -402,6 +402,13 @@ class Partition(object):
partition_supervisor_configuration)
self.updateSupervisor()
parameter_dict = self.computer_partition.getInstanceParameterDict()
if 'timestamp' in parameter_dict:
timestamp_path = os.path.join(self.instance_path, '.timestamp')
descriptor = open(timestamp_path, 'w')
descriptor.write(parameter_dict['timestamp'])
descriptor.close()
def start(self):
"""Asks supervisord to start the instance. If this instance is not
installed, we install it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment