HomePhabricator
Diffusion Scap 2a2a5b56b977

Default to the effective user in scap.Context

Authored by dduvall.

Description

Default to the effective user in scap.Context

Projects: Release-Engineering-Team

Maniphest Tasks: T126489

Summary:
It only makes sense to use the tty user in the host context. The
scap.Context constructor now uses the effective user by default and
scap.HostContext overrides this with utils.get_real_username.

Fixes T126489

Reviewers: Release-Engineering-Team, mmodell

Reviewed By: Release-Engineering-Team, mmodell

Subscribers: mmodell, jenkins

Differential Revision: https://phabricator.wikimedia.org/D130