Fix bug with aptly locking up on swift published storage lookup. #191

This commit is contained in:
Andrey Smirnov
2015-02-22 13:42:06 +03:00
parent 3c34ae6071
commit 43414be2ee

View File

@@ -328,7 +328,7 @@ func (context *AptlyContext) GetPublishedStorage(name string) aptly.PublishedSto
Fatal(err)
}
} else if strings.HasPrefix(name, "swift:") {
params, ok := context.Config().SwiftPublishRoots[name[6:]]
params, ok := context.config().SwiftPublishRoots[name[6:]]
if !ok {
Fatal(fmt.Errorf("published Swift storage %v not configured", name[6:]))
}