This commit is contained in:
Megan Marsh 2019-07-03 13:34:23 -07:00
parent 8718e98efe
commit 242f5b1c9f
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package cloudstack
import ( import (
"fmt" "fmt"
"log"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
) )

View File

@ -99,7 +99,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
}, },
&communicator.StepConnect{ &communicator.StepConnect{
Config: &b.config.Comm, Config: &b.config.Comm,
Host: ocommon.CommHost(b.config.Comm.SSHHost), Host: communicator.CommHost(b.config.Comm.SSHHost, "instance_ip"),
SSHConfig: b.config.Comm.SSHConfigFunc(), SSHConfig: b.config.Comm.SSHConfigFunc(),
}, },
&common.StepProvision{}, &common.StepProvision{},
@ -162,7 +162,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
&stepCreateInstance{}, &stepCreateInstance{},
&communicator.StepConnect{ &communicator.StepConnect{
Config: &b.config.Comm, Config: &b.config.Comm,
Host: ocommon.CommHost(b.config.Comm.SSHHost), Host: communicator.CommHost(b.config.Comm.SSHHost, "instance_ip"),
SSHConfig: b.config.Comm.SSHConfigFunc(), SSHConfig: b.config.Comm.SSHConfigFunc(),
}, },
&common.StepProvision{}, &common.StepProvision{},

View File

@ -1,6 +1,7 @@
package communicator package communicator
import ( import (
"fmt"
"log" "log"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"