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 (
"fmt"
"log"
"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{
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(),
},
&common.StepProvision{},
@ -162,7 +162,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
&stepCreateInstance{},
&communicator.StepConnect{
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(),
},
&common.StepProvision{},

View File

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