pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.91k stars 383 forks source link

Cannot have different values per host for global arguments #733

Closed Fizzadar closed 2 years ago

Fizzadar commented 2 years ago

Describe the bug

Setting use_sudo_password differently for two different hosts fails, the same password is used for both.

Fizzadar commented 2 years ago

Fixed via workaround in v1.6.2 (https://github.com/Fizzadar/pyinfra/commit/2cd2e1a5b3ad6389a9ae815b28f2326fe55a4f42), v2 will properly fix this.