Merge pull request #5070 from boumenot/pr-azure-pp-ssh-key

azure: private SSH private key for debug
This commit is contained in:
Christopher Boumenot 2017-06-26 14:01:02 -07:00 committed by GitHub
commit c84e29e7fc
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
if b.config.PackerDebug {
ui.Message(fmt.Sprintf("temp admin user: '%s'", b.config.UserName))
ui.Message(fmt.Sprintf("temp admin password: '%s'", b.config.Password))
if b.config.sshPrivateKey != "" {
ui.Message(fmt.Sprintf("temp private ssh key: '%s'", b.config.sshPrivateKey))
}
}
b.runner = packerCommon.NewRunner(steps, b.config.PackerConfig, ui)