Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no output to stdout #9

Open
adyrcz opened this issue Jan 13, 2017 · 7 comments
Open

no output to stdout #9

adyrcz opened this issue Jan 13, 2017 · 7 comments

Comments

@adyrcz
Copy link

adyrcz commented Jan 13, 2017

When I run a packer build of an AMI using this module, the command starts and runs......... and runs........ then just spits back my prompt. Is it done? Did it build? No clue... 😢

I've tried both Debug set to True & False p.build(parallel=True, debug=False, force=False) & p.build(parallel=True, debug=True, force=False)

I would like to have it output the same stdout that the native Packer outputs.

@nir0s
Copy link
Owner

nir0s commented Jan 13, 2017

I'll release a version with a fix for this soon

@adyrcz
Copy link
Author

adyrcz commented Jan 14, 2017

Will it be possible to use the output as an object?
for ex. when a packer run completes it returns the AMI ID of the freshly generated AMI.
I'd like to use that and pass that through the SlackAPI and notify my channel that "AMI-XXXXXXXX was just generated"

@nir0s
Copy link
Owner

nir0s commented Jan 14, 2017

It seems like it was already added here:

f7d33e4.

see here: https://amoffat.github.io/sh/sections/special_arguments.html#out for reference

@nir0s
Copy link
Owner

nir0s commented Jan 14, 2017

In an unrelated subject, I'm doing quire a refactoring for v0.2.0 so it'll be easier to retrieve output, but I don't think it'll be trivial to do what you asked (like getting the AMI ID) as it depends on the provider you're using to create the image and on very potentially non-robust parsing of the output. I'll try to think of something.

@adyrcz
Copy link
Author

adyrcz commented Jan 29, 2017

Thank you

@mkohn
Copy link

mkohn commented Oct 10, 2017

Any update on this?

@iamaaronknight
Copy link

Hi, checking in on this. It would be very helpful to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants