Closed jmpolom closed 2 years ago
Replicated this and get_pty
means output lines have \r
at the end - I've added a fix (+test) for this in https://github.com/Fizzadar/pyinfra/commit/f5cb24e5ae99f457fc7d725d9d087c2fdc5b7ed7.
Now released in v1.7
!
Describe the bug
or
Either of the above will result in pyinfra not asking for a sudo password, which is different from the behavior when
get_pty
is not specified and pyinfra asks for a sudo password if one is not supplied via a kwarg or configuration parameter. This seems like buggy inconsistent behavior.Example output when it doesn't prompt for password:
To get around this issue, either
config.USE_SUDO_PASSWORD
needs to be set toTrue
/the password value, or the equivalent kwarg can be passed to the operation with the same values.To Reproduce
Add
get_pty=True
to an operation.Expected behavior
pyinfra prompts for sudo password as it does when
get_pty
is default/False.Meta
pyinfra --support
.-vv
and--debug
.