1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-11-14 10:22:42 +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" package storage // import "github.com/Luzifer/mondash/storage"
import ( import (
"bytes"
"io/ioutil" "io/ioutil"
"strings" "strings"
@ -31,7 +32,8 @@ func (s *S3Storage) Put(dashboardID string, data []byte) error {
Bucket: aws.String(s.cfg.S3.Bucket), Bucket: aws.String(s.cfg.S3.Bucket),
ContentType: aws.String("application/json"), ContentType: aws.String("application/json"),
Key: aws.String(dashboardID), Key: aws.String(dashboardID),
// TODO: Private ACL Body: bytes.NewReader(data),
ACL: aws.String("private"),
}) })
return err return err