Browse Source

Store username in archive

Jonas Borgström 14 năm trước cách đây
mục cha
commit
6c672b1ee5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      dedupestore/archive.py

+ 2 - 0
dedupestore/archive.py

@@ -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,
         }