mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-17 11:38:35 +02:00
fix test_lifecycle_get
This commit is contained in:
1 parent
1d055cf871
commit
8f991bdcf9
1 file changed
+4
-1
@@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
"net/http"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -346,7 +347,9 @@ func (s3a *S3ApiServer) GetBucketLifecycleConfigurationHandler(w http.ResponseWr
|
||||
Expiration: Expiration{Days: days, set: true},
|
||||
})
|
||||
}
|
||||
|
||||
sort.Slice(response.Rules, func(i, j int) bool {
|
||||
return response.Rules[i].ID < response.Rules[j].ID
|
||||
})
|
||||
writeSuccessResponseXML(w, r, response)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user