Nick Mills-Barrett
Nick Mills-Barrett
Hi @romanchyla this is actually the correct behaviour, `_sudo` is passed between nested operation and deploy function calls (so a caller can expect all nested operations to share the same...
@romanchyla agreed, I think this case should behave at you specify; quick explanation below on why that doesn't currently and a possible solution. ```py @deploy("") def do(_sudo=True): click.secho(host.get_fact(Home), fg="yellow") extensions()...
Hi @belonesox, thank you for reporting this! I am unable to replicate it currently, a reproducible environment would be extremely helpful (docker if possible). Following the code it seems if...
Looking at the list, one option would just be to say "system operations in, everything else out". But having things like `postgresql` builtin to pyinfra do seem very handy to...
So pyinfra did used to, depending on package manager, lowercase package names. However this behaviour was confusing and resulted in other bugs. That said PyPi's own pep-0426 clearly states package...
Love this idea. As part of tackling #805 I am going to overhaul the diff output to be more verbose (think terraform).
Hm, need to find a way to resolve a package via apt/dpkg command and we can solve this by always expanding them as we already do for pacman packages: https://github.com/pyinfra-dev/pyinfra/blob/a280e174d85eb41c7851f6d62e6afa89af0c21f4/pyinfra/operations/pacman.py#L78.
v3 implements this properly "maybe will change" operations and indicated in the pre-apply changes output.
Hrm, sorry this one has come back again @Renerick, this is very annoying! The idea behind the config copies is to keep a separate version by host to scope any...
Going to fix this properly in v3 by making config a global instance again. It shouldn't be per-host and it leads to all sorts of confusion like this.