commit | ad45d8a74e1dcabee03ed4c21f459e30bd0a38d6 | [log] [tgz] |
---|---|---|
author | David Shrewsbury <shrewsbury.dave@gmail.com> | Thu Jun 16 16:28:32 2016 -0400 |
committer | David Shrewsbury <shrewsbury.dave@gmail.com> | Thu Jun 16 16:28:32 2016 -0400 |
tree | 8f115e3f10472bc779fb5d3f75c14ebe02ed2a49 | |
parent | 4c53f63299bd1c1d80403e30041bcc60e9e29b7a [diff] |
Set LOGNAME env var to fix Ansible logging The getpass.getuser() method, used by the Ansible logging file, can incorrectly report the user as it checks a list of environment variables in order to get the user name. Under some circumstances, e.g., daemons, you may not get the correct username because LOGNAME will not get set correctly. Change-Id: I8a4670ba9b3df20de73d878013eebf4a0ea568c0