Add checks for Server.Load(), use Blob for load

This commit is contained in:
Alexander Neumann committed 2015-03-28 15:07:08 +01:00
1 parent 5e69788eac
commit f157f775da
16 files changed
+120 -131

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func NewSnapshot(paths []string) (*Snapshot, error) {
func LoadSnapshot(s Server, id backend.ID) (*Snapshot, error) {
sn := &Snapshot{id: id}
err := s.LoadJSONID(backend.Snapshot, id.String(), sn)
err := s.LoadJSONID(backend.Snapshot, id, sn)
if err != nil {
return nil, err
}