Browse Source
Update weed/s3api/s3api_object_retention.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6997/head
Chris Lu
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/s3api/s3api_object_retention.go
|
|
|
@ -94,7 +94,7 @@ func (dr *DefaultRetention) UnmarshalXML(d *xml.Decoder, start xml.StartElement) |
|
|
|
Years *int `xml:"http://s3.amazonaws.com/doc/2006-03-01/ Years,omitempty"` |
|
|
|
}{Alias: (*Alias)(dr)} |
|
|
|
if err := d.DecodeElement(aux, &start); err != nil { |
|
|
|
glog.Errorf("DefaultRetention.UnmarshalXML: decode error: %v", err) |
|
|
|
glog.V(2).Infof("DefaultRetention.UnmarshalXML: decode error: %v", err) |
|
|
|
return err |
|
|
|
} |
|
|
|
if aux.Days != nil { |
|
|
|
|