Fix bugs with prefix/storage parsing. #15

This commit is contained in:
Andrey Smirnov committed 2014-07-22 00:27:49 +04:00
1 parent 71d90947c9
commit 52bb33dc69
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -210,9 +210,9 @@ func (context *AptlyContext) GetPublishedStorage(name string) aptly.PublishedSto
if name == "" {
publishedStorage = files.NewPublishedStorage(context.Config().RootDir)
} else if strings.HasPrefix(name, "s3:") {
params, ok := context.Config().S3PublishRoots[name[4:]]
params, ok := context.Config().S3PublishRoots[name[3:]]
if !ok {
Fatal(fmt.Errorf("published S3 storage %v not configured", name[4:]))
Fatal(fmt.Errorf("published S3 storage %v not configured", name[3:]))
}
var err error