forked from TrueCloudLab/frostfs-s3-gw
[#462] Fix None versioning status
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
0e37242b65
commit
faa3c65290
3 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,7 @@ func (h *handler) PutBucketVersioningHandler(w http.ResponseWriter, r *http.Requ
|
|||
}
|
||||
|
||||
settings.VersioningEnabled = configuration.Status == "Enabled"
|
||||
settings.IsNoneStatus = false
|
||||
|
||||
p := &layer.PutSettingsParams{
|
||||
BktInfo: bktInfo,
|
||||
|
@ -76,7 +77,7 @@ func (h *handler) GetBucketVersioningHandler(w http.ResponseWriter, r *http.Requ
|
|||
|
||||
func formVersioningConfiguration(settings *data.BucketSettings) *VersioningConfiguration {
|
||||
res := &VersioningConfiguration{}
|
||||
if settings == nil {
|
||||
if settings.IsNoneStatus {
|
||||
return res
|
||||
}
|
||||
if settings.VersioningEnabled {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue