handle case when remote ssh server disconnects#4034
Conversation
f8ec52d to
f7ad12a
Compare
f7ad12a to
370bd4a
Compare
| // Whether to clean scripts up | ||
| SkipClean bool `mapstructure:"skip_clean"` | ||
|
|
||
| ExpectDisconnect *bool `mapstructure:"expect_disconnect"` |
provisioner/shell: Adds option to fail if the remote server disconnects us.
d11059c to
892d5e8
Compare
|
Hey Guys, I think this is still breaking builds. My builds that use ssh communicator and shutdown are failing with "Build 'vmware-iso' errored: Shutdown command has non-zero exit status." this is with Packer v0.11.1.dev (da2262a). Seems like shutdown command should not barf on any error code or disconnect. |
|
@trodemaster thanks for the report. I threw up a PR (#4041) which I think might fix this. I wasn't able to reproduce this right away. Would you mind testing this? |
|
Great work! |
|
I have confirmed that this fixes the shutdown issue I was seeing. Thanks Cheers, On Sat, Oct 22, 2016 at 4:11 AM, Rickard von Essen <notifications@github.com
|
needs a little more work but here's something that works in a way I like
Also adds cool new config syntax that lets us default
expect_disconnectto true.Closes #4011
Replaces #4010
Fixes #4006