Skip to content

Commit

Permalink
Merge pull request #7534 from justinsb/cherrypick_7483_release-1.14
Browse files Browse the repository at this point in the history
Cherry pick of #7483 onto release-1.14
  • Loading branch information
k8s-ci-robot authored Sep 8, 2019
2 parents b69fe4f + 30f3320 commit e5d6d82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/pkg/vfs/sshfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ func (p *SSHPath) WriteFile(data io.ReadSeeker, acl ACL) error {
}

if err == nil {
session, err := p.client.NewSession()
var session *ssh.Session
session, err = p.client.NewSession()
if err != nil {
err = fmt.Errorf("error creating session for rename: %v", err)
} else {
Expand Down

0 comments on commit e5d6d82

Please sign in to comment.