mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 17:20:26 -04:00
communicator/winrm: error if download
This commit is contained in:
parent
15f40a3d00
commit
686d4413ec
2 changed files with 2 additions and 3 deletions
|
|
@ -173,12 +173,11 @@ func (c *comm) UploadDir(dst string, src string, excl []string) error {
|
|||
}
|
||||
|
||||
func (c *comm) Download(path string, output io.Writer) error {
|
||||
|
||||
scpFunc := func(w io.Writer, stdoutR *bufio.Reader) error {
|
||||
fmt.Fprint(w, "\x00")
|
||||
|
||||
// read file info
|
||||
fi, err := stdoutR.ReadString( '\n')
|
||||
fi, err := stdoutR.ReadString('\n')
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
|
|||
}
|
||||
|
||||
func (c *Communicator) Download(src string, dst io.Writer) error {
|
||||
panic("download not implemented")
|
||||
return fmt.Errorf("WinRM doesn't support download.")
|
||||
}
|
||||
|
||||
func (c *Communicator) newCopyClient() (*winrmcp.Winrmcp, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue