Return resources as its available, not a new value

This commit is contained in:
Harshavardhana 2015-04-29 16:45:57 -07:00
parent edf838df74
commit a89c4a57d3
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ func (memory *memoryDriver) ListObjects(bucket string, resources drivers.BucketR
sort.Strings(keys)
for _, key := range keys {
if len(results) == resources.Maxkeys {
return results, drivers.BucketResourcesMetadata{IsTruncated: true}, nil
resources.IsTruncated = true
return results, resources, nil
}
object := memory.objectMetadata[bucket+"/"+key]
if bucket == object.metadata.Bucket {