Store username in archive

This commit is contained in:
Jonas Borgström 2010-10-24 22:07:54 +02:00
parent a3d2d5c733
commit 6c672b1ee5
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
from datetime import datetime
from getpass import getuser
import logging
import msgpack
import os
@ -56,6 +57,7 @@ class Archive(object):
'cindex': cindex_hash,
'cmdline': sys.argv,
'hostname': socket.gethostname(),
'username': getuser(),
'ts': datetime.utcnow().isoformat(),
'items': self.items,
}