From 1937b981f66128c6510ca850414600538dbe1f42 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 7 Jul 2015 01:01:14 +0200 Subject: [PATCH] Fix: Was not storing data --- storage/s3.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/s3.go b/storage/s3.go index 372df6e..ff105b0 100644 --- a/storage/s3.go +++ b/storage/s3.go @@ -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