fix linting.

This commit is contained in:
Megan Marsh 2020-08-07 10:53:07 -07:00
parent 24739270cf
commit 03220c0b94
1 changed files with 4 additions and 1 deletions

View File

@ -472,7 +472,10 @@ func (p *Provisioner) uploadFile(ui packer.Ui, comm packer.Communicator, dst, sr
return fmt.Errorf("Error uploading %s: %s", src, err)
}
p.moveFile(ui, comm, dst, temp_dst)
err = p.moveFile(ui, comm, dst, temp_dst)
if err != nil {
return fmt.Errorf("Error moving file to destination: %s", err)
}
return nil
}