From 082d806b1f5ce9b0975160df715156b9e775587f Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 21 May 2020 09:39:54 -0700 Subject: [PATCH] fix httpip acquisition --- builder/qemu/step_run.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/qemu/step_run.go b/builder/qemu/step_run.go index 0dabe443a..900162f4f 100644 --- a/builder/qemu/step_run.go +++ b/builder/qemu/step_run.go @@ -8,7 +8,6 @@ import ( "strings" "github.com/hashicorp/go-version" - "github.com/hashicorp/packer/common" "github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/template/interpolate" @@ -224,7 +223,7 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error if len(config.QemuArgs) > 0 { ui.Say("Overriding defaults Qemu arguments with QemuArgs...") - httpIp := common.GetHTTPIP() + httpIp := state.Get("http_ip").(string) httpPort := state.Get("http_port").(int) ictx := config.ctx if config.Comm.Type != "none" {