summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go')
-rw-r--r--vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go b/vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go
index 055fa891..0f33348f 100644
--- a/vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go
+++ b/vendor/github.com/mitchellh/packer/vendor/github.com/masterzen/winrm/shell.go
@@ -27,10 +27,10 @@ func (s *Shell) Execute(command string, arguments ...string) (*Command, error) {
}
// Close will terminate this shell. No commands can be issued once the shell is closed.
-func (shell *Shell) Close() error {
- request := NewDeleteShellRequest(shell.client.url, shell.id, &shell.client.Parameters)
+func (s *Shell) Close() error {
+ request := NewDeleteShellRequest(s.client.url, s.id, &s.client.Parameters)
defer request.Free()
- _, err := shell.client.sendRequest(request)
+ _, err := s.client.sendRequest(request)
return err
}