terraform icon indicating copy to clipboard operation
terraform copied to clipboard

communicator/ssh: fix Upload to avoid copying files to determine size

Open mmatczuk opened this issue 6 years ago • 1 comments

The optimization not to copy instances of *os.File in Upload does not work due to wrong error handling. This PR fixes the issue. I have also piggybacked a change in the type switch to handle anything that can report length or os stats.

mmatczuk avatar Apr 23 '19 09:04 mmatczuk

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Apr 23 '19 09:04 hashicorp-cla