fmt
This commit is contained in:
parent
e84e5e4f2c
commit
5fac6c79c4
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mitchellh/packer/common/uuid"
|
|
||||||
"github.com/mitchellh/packer/common"
|
"github.com/mitchellh/packer/common"
|
||||||
|
"github.com/mitchellh/packer/common/uuid"
|
||||||
"github.com/mitchellh/packer/packer"
|
"github.com/mitchellh/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ package iso
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mitchellh/multistep"
|
"github.com/mitchellh/multistep"
|
||||||
"github.com/mitchellh/packer/packer"
|
|
||||||
vmwcommon "github.com/mitchellh/packer/builder/vmware/common"
|
vmwcommon "github.com/mitchellh/packer/builder/vmware/common"
|
||||||
|
"github.com/mitchellh/packer/packer"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package ssh
|
package ssh
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"code.google.com/p/go.crypto/ssh"
|
||||||
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// An implementation of ssh.KeyboardInteractiveChallenge that simply sends
|
// An implementation of ssh.KeyboardInteractiveChallenge that simply sends
|
||||||
// back the password for all questions. The questions are logged.
|
// 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) {
|
return func(user, instruction string, questions []string, echos []bool) ([]string, error) {
|
||||||
log.Printf("Keyboard interactive challenge: ")
|
log.Printf("Keyboard interactive challenge: ")
|
||||||
log.Printf("-- User: %s", user)
|
log.Printf("-- User: %s", user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user