summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/provisioner/shell
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/packer/provisioner/shell')
-rw-r--r--vendor/github.com/mitchellh/packer/provisioner/shell/provisioner.go2
-rw-r--r--vendor/github.com/mitchellh/packer/provisioner/shell/provisioner_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner.go b/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner.go
index 5e9c587a..de88e763 100644
--- a/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner.go
+++ b/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner.go
@@ -105,7 +105,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
if p.config.ExpectDisconnect == nil {
- t := true
+ t := false
p.config.ExpectDisconnect = &t
}
diff --git a/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner_test.go b/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner_test.go
index ee0edf95..b74fdbb1 100644
--- a/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner_test.go
+++ b/vendor/github.com/mitchellh/packer/provisioner/shell/provisioner_test.go
@@ -32,8 +32,8 @@ func TestProvisionerPrepare_Defaults(t *testing.T) {
t.Fatalf("err: %s", err)
}
- if *p.config.ExpectDisconnect != true {
- t.Errorf("expected ExpectDisconnect to be true")
+ if *p.config.ExpectDisconnect != false {
+ t.Errorf("expected ExpectDisconnect to default to false")
}
if p.config.RemotePath == "" {