Closed julienlavergne closed 1 year ago
Argh, this is bad! Really should be tested... now done in https://github.com/Fizzadar/pyinfra/commit/53dc0e16f907e2217846a790f3d848e53281618b. Actual fix in https://github.com/Fizzadar/pyinfra/commit/0a27fff181199505baf8bbe522fb9ca6c5e03168, will roll 2.5.3 shortly.
Thank you for raising this issue!
Describe the bug
host.get_fact(File, path=remote_file_path, _sudo=True)
works in 2.5.1 and raises an exception in 2.5.2:New code in
_get_fact_hash
seems to be the culprit.To Reproduce
I suppose any
host.get_fact
with_sudo=True
.Meta