Packer: Raw output

Created on 2 Oct 2020  ·  4Comments  ·  Source: hashicorp/packer

WHAT:
Please add support for raw output (without coloring), it'll be usefull for everyone who uses Packer as subprocess and grabs the output.

It can be flag like packer build --raw-output (...)
WHY:
this is example from reading text stream: b'\x1b[0;32m vsphere-clone:\x1b[0m\n'
At least add whitespace on the end so, people can grab log(streamline.split(' ')[1:-1]).
Thanks in advance!
wejdross

core question

All 4 comments

Hey @wejdross, thanks for opening; I think the --machine-readable option should do just that ! Please tell us if there's anything to improve; I'll close this one in the meantime. 🙂

Thank You very much, You solved my problem.

Nice ! 🙂

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings