From ec6f8264bf84f139369e782312dbd8a7f7925e3f Mon Sep 17 00:00:00 2001 From: Richard Nienaber Date: Mon, 16 Apr 2018 10:56:26 +0100 Subject: [PATCH] fix winrm password access in google compute --- builder/googlecompute/step_create_windows_password.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/googlecompute/step_create_windows_password.go b/builder/googlecompute/step_create_windows_password.go index 3386f6fbc..a389ad97a 100644 --- a/builder/googlecompute/step_create_windows_password.go +++ b/builder/googlecompute/step_create_windows_password.go @@ -13,6 +13,7 @@ import ( "os" "time" + commonhelper "github.com/hashicorp/packer/helper/common" "github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/packer" ) @@ -112,6 +113,7 @@ func (s *StepCreateWindowsPassword) Run(_ context.Context, state multistep.State } state.Put("winrm_password", data.password) + commonhelper.SetSharedState("winrm_password", data.password) return multistep.ActionContinue }