pycontribs / python-vagrant

Python bindings for interacting with Vagrant virtual machines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support to get stderr for failed vagrant commands

miqsoft opened this issue · comments

In some cases it is needed/helpful to get the stderr after you run vagrant up (or another vagrant command) and it failed.

As far as I can see this is not implemented in the source code so far. Would be amazing to have this possibility within python-vagrant.

Not sure what's exactly you meant, but it's possible to get stderr content, via a context manager. See https://github.com/pycontribs/python-vagrant/blob/main/README.md#logging-the-stdout-or-stderr-of-the-vagrant-subprocess.

Thanks for the fast response. This is what I meant. Sorry for not reading the documentation properly