diff --git a/builder/vmware/common/ssh_config.go b/builder/vmware/common/ssh_config.go index a345b4c1..ce1cb609 100644 --- a/builder/vmware/common/ssh_config.go +++ b/builder/vmware/common/ssh_config.go @@ -6,6 +6,8 @@ package common import ( + "log" + "github.com/hashicorp/packer-plugin-sdk/communicator" "github.com/hashicorp/packer-plugin-sdk/template/interpolate" ) @@ -13,14 +15,14 @@ import ( type SSHConfig struct { Comm communicator.Config `mapstructure:",squash"` - // These are deprecated, but we keep them around for BC - // TODO(@mitchellh): remove + // TODO: Deprecated. Remove in next major release SSHSkipRequestPty bool `mapstructure:"ssh_skip_request_pty"` } func (c *SSHConfig) Prepare(ctx *interpolate.Context) []error { if c.SSHSkipRequestPty { c.Comm.SSHPty = false + log.Printf("[WARN] 'ssh_skip_request_pty' is deprecated and will be removed in the next major release.") } return c.Comm.Prepare(ctx)