Skip to content

Commit

Permalink
chore: deprecated ssh_skip_request_pty
Browse files Browse the repository at this point in the history
Deprecated `ssh_skip_request_pty` per comment:

```
// These are deprecated, but we keep them around for BC
// TODO(@mitchellh): remove"
```

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
  • Loading branch information
tenthirtyam committed Jul 26, 2024
1 parent 330dc55 commit 54ccaa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builder/vmware/common/ssh_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@
package common

import (
"log"

"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)

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)
Expand Down

0 comments on commit 54ccaa3

Please sign in to comment.