Files

17 lines
448 B
Go
Raw Permalink Normal View History

package common
import (
2020-12-17 13:29:25 -08:00
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)
2016-12-16 21:51:55 +02:00
// SSHConfig contains the configuration for SSH communicator.
type SSHConfig struct {
2015-06-13 18:43:27 -04:00
Comm communicator.Config `mapstructure:",squash"`
}
2016-12-16 21:51:55 +02:00
// Prepare sets the default values for SSH communicator properties.
2015-05-27 13:49:31 -07:00
func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error {
2015-06-13 18:43:27 -04:00
return c.Comm.Prepare(ctx)
}