Merge pull request #5283 from hashicorp/do_4039

set default for ExpectDisconnect to false
This commit is contained in:
Megan Marsh 2017-08-24 15:51:32 -07:00 committed by GitHub
commit f50045a71c
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
if p.config.ExpectDisconnect == nil {
t := true
t := false
p.config.ExpectDisconnect = &t
}

View File

@ -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 == "" {