1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-12-22 20:11:18 +00:00

Fix: Was not storing data

This commit is contained in:
Knut Ahlers 2015-07-07 01:01:14 +02:00
parent ae3e597e56
commit 1937b981f6

View file

@ -1,6 +1,7 @@
package storage // import "github.com/Luzifer/mondash/storage"
import (
"bytes"
"io/ioutil"
"strings"
@ -31,7 +32,8 @@ func (s *S3Storage) Put(dashboardID string, data []byte) error {
Bucket: aws.String(s.cfg.S3.Bucket),
ContentType: aws.String("application/json"),
Key: aws.String(dashboardID),
// TODO: Private ACL
Body: bytes.NewReader(data),
ACL: aws.String("private"),
})
return err