mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-22 06:37:33 -04:00
Replace uid2user(os.getuid()) with getpass.getuser()
This commit is contained in:
parent
cd17602069
commit
cc6a58bab7
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import argparse
|
||||
import getpass
|
||||
import hashlib
|
||||
import logging
|
||||
import os
|
||||
|
|
@ -593,7 +594,7 @@ def replace_placeholders(text):
|
|||
'hostname': socket.gethostname(),
|
||||
'now': current_time.now(),
|
||||
'utcnow': current_time.utcnow(),
|
||||
'user': uid2user(os.getuid(), os.getuid()),
|
||||
'user': getpass.getuser(),
|
||||
'uuid4': str(uuid.uuid4()),
|
||||
}
|
||||
return format_line(text, data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue