Added printout of select source_image

This commit is contained in:
Rickard von Essen 2016-11-26 15:06:43 +01:00
parent 54aa830943
commit d18da5e679
No known key found for this signature in database
GPG Key ID: E0C0327388876CBA
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ func (s *StepCreateInstance) Run(state multistep.StateBag) multistep.StepAction
return multistep.ActionHalt
}
ui.Say(fmt.Sprintf("Using image: %s", sourceImage.Name))
if sourceImage.IsWindows() && c.Comm.Type == "winrm" && c.Comm.WinRMPassword == "" {
state.Put("create_windows_password", true)
}