run-autopkgtest: Pass SUDO_USER as the requester if it's set

No place to hide
This commit is contained in:
Iain Lane 2018-05-02 12:56:34 +01:00
parent 100a3f4e90
commit c3fe5dc897

View File

@ -130,6 +130,10 @@ if __name__ == '__main__':
context = 'upstream-'
if args.all_proposed:
params['all-proposed'] = True
try:
params['requester'] = os.environ['SUDO_USER']
except KeyError:
pass
params = '\n' + json.dumps(params)
creds = urllib.parse.urlsplit(config.adt_amqp, allow_fragments=False)