This commit is contained in:
Mitchell Hashimoto 2014-04-26 11:12:43 -07:00
parent e84e5e4f2c
commit 5fac6c79c4
9 changed files with 42 additions and 42 deletions

View File

@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/mitchellh/packer/common/uuid"
"github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/common/uuid"
"github.com/mitchellh/packer/packer"
)

View File

@ -3,8 +3,8 @@ package iso
import (
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
vmwcommon "github.com/mitchellh/packer/builder/vmware/common"
"github.com/mitchellh/packer/packer"
"os"
)

View File

@ -1,13 +1,13 @@
package ssh
import (
"log"
"code.google.com/p/go.crypto/ssh"
"log"
)
// An implementation of ssh.KeyboardInteractiveChallenge that simply sends
// back the password for all questions. The questions are logged.
func PasswordKeyboardInteractive (password string) (ssh.KeyboardInteractiveChallenge) {
func PasswordKeyboardInteractive(password string) ssh.KeyboardInteractiveChallenge {
return func(user, instruction string, questions []string, echos []bool) ([]string, error) {
log.Printf("Keyboard interactive challenge: ")
log.Printf("-- User: %s", user)