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 382 forks source link

`--quiet` command line flag has no effect #1113

Closed moderation closed 3 months ago

moderation commented 5 months ago

Describe the bug

In the v3.x branch, the --quiet command line flag no longer works

To Reproduce

pyinfra pi.local --quiet exec -- go version

NAME="openSUSE Tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240524"

pyinfra --support

    System: Linux
      Platform: Linux-6.9.1-1-default-x86_64-with-glibc2.39
      Release: 6.9.1-1-default
      Machine: x86_64
    pyinfra: v3.0b1
    Executable: /home/moderation/.local/bin/pyinfra
    Python: 3.12.3 (CPython, GCC)

Expected behavior

Expect reduced output as per --quiet Hide most pyinfra output.. Output is exactly the same with or without the --quiet flag.

Meta

pyinfra built from source from HEAD with python3.12 -m pip install --break-system-packages --user --upgrade .

Fizzadar commented 3 months ago

Thanks for spotting this, @moderation, I'm going to remove it as broken, should have been dropped in v3.0.

Fizzadar commented 3 months ago

Closed via https://github.com/pyinfra-dev/pyinfra/commit/682030db2026620439b2bfaf92118846901ba47e