From 279555b8e1aec7a7944ae17d46a8967ebdd6d7ad Mon Sep 17 00:00:00 2001 From: Dan Sedlacek Date: Thu, 29 Oct 2015 11:24:20 -0700 Subject: [PATCH] Added ability to see what SSH Port packer generated in template data --- builder/qemu/step_run.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/builder/qemu/step_run.go b/builder/qemu/step_run.go index 74db88a15..f6697d567 100644 --- a/builder/qemu/step_run.go +++ b/builder/qemu/step_run.go @@ -19,11 +19,12 @@ type stepRun struct { } type qemuArgsTemplateData struct { - HTTPIP string - HTTPPort uint - HTTPDir string - OutputDir string - Name string + HTTPIP string + HTTPPort uint + HTTPDir string + OutputDir string + Name string + SSHHostPort uint } func (s *stepRun) Run(state multistep.StateBag) multistep.StepAction { @@ -148,6 +149,7 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error config.HTTPDir, config.OutputDir, config.VMName, + sshHostPort, } newQemuArgs, err := processArgs(config.QemuArgs, &ctx) if err != nil {