ansible/test/units/module_utils/facts/system
Alexander Sowitzki 218f5c3648
user - Prevent user fact lookup failure if LOGNAME is set (#17029) (#73439)
The `UserFactCollector` queries the user login name via
`getpass.getuser()` and looks up the corresponding entry
in the password database.
The login name may differ from the actual user name,
eg. if the `LOGNAME` env variable is set. The lookup
fails in this case. Added a fallback in this case that
tries to get the entry via the user ID.
2021-02-02 10:36:02 -05:00
..
distribution [facts] Differentiate CentOS vs CentOS Stream (#73034) 2021-01-13 17:54:04 -05:00
__init__.py
test_cmdline.py Parse multiple values for single key in cmdline facts (#49591) 2019-02-19 15:47:06 +05:30
test_lsb.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
test_user.py user - Prevent user fact lookup failure if LOGNAME is set (#17029) (#73439) 2021-02-02 10:36:02 -05:00