fix httpip acquisition

This commit is contained in:
Megan Marsh 2020-05-21 09:39:54 -07:00
parent 06fad6cc4f
commit 082d806b1f
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import (
"strings" "strings"
"github.com/hashicorp/go-version" "github.com/hashicorp/go-version"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"
@ -224,7 +223,7 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
if len(config.QemuArgs) > 0 { if len(config.QemuArgs) > 0 {
ui.Say("Overriding defaults Qemu arguments with QemuArgs...") ui.Say("Overriding defaults Qemu arguments with QemuArgs...")
httpIp := common.GetHTTPIP() httpIp := state.Get("http_ip").(string)
httpPort := state.Get("http_port").(int) httpPort := state.Get("http_port").(int)
ictx := config.ctx ictx := config.ctx
if config.Comm.Type != "none" { if config.Comm.Type != "none" {