mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 10:21:20 -05:00
16 lines
433 B
Go
16 lines
433 B
Go
package common
|
|
|
|
import (
|
|
"github.com/hashicorp/packer/helper/communicator"
|
|
"github.com/hashicorp/packer/template/interpolate"
|
|
)
|
|
|
|
// SSHConfig contains the configuration for SSH communicator.
|
|
type SSHConfig struct {
|
|
Comm communicator.Config `mapstructure:",squash"`
|
|
}
|
|
|
|
// Prepare sets the default values for SSH communicator properties.
|
|
func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error {
|
|
return c.Comm.Prepare(ctx)
|
|
}
|