fixes and closes #8547

This commit is contained in:
Chris Lundquist 2020-01-21 19:49:49 -08:00
parent ff62d5b29b
commit 15cbe4769c
1 changed files with 5 additions and 3 deletions

View File

@ -88,10 +88,12 @@ func (c *Communicator) Upload(dst string, r io.Reader, fi *os.FileInfo) error {
}
func (c *Communicator) UploadDir(dst string, src string, exclude []string) error {
fileDestination := filepath.Join(c.ContainerName, dst)
cp, err := c.CmdWrapper(fmt.Sprintf("lxc file push -pr %s %s", src, fileDestination))
fileDestination := fmt.Sprintf("%s/%s", c.ContainerName, dst)
pushCommand := fmt.Sprintf("lxc file push --debug -pr %s %s", src, fileDestination)
log.Printf(pushCommand)
cp, err := c.CmdWrapper(pushCommand)
if err != nil {
log.Printf("Error running cp command: %s", err)
return err
}