mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
And use the new getlogin()
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -87,6 +87,7 @@ def getlogin():
|
||||
except:
|
||||
return os.environ['USER']
|
||||
|
||||
|
||||
# Read in all the rev information git-receive-pack hands us.
|
||||
lines = [line.split() for line in sys.stdin.readlines()]
|
||||
for line in lines:
|
||||
@@ -131,7 +132,7 @@ for line in lines:
|
||||
repo=repo_name,
|
||||
namespace=namespace,
|
||||
branch=branch,
|
||||
agent=os.getlogin(),
|
||||
agent=getlogin(),
|
||||
)
|
||||
|
||||
commits = map(_build_commit, revs)
|
||||
|
||||
Reference in New Issue
Block a user