mirror of
https://github.com/minio/minio.git
synced 2025-04-22 11:26:36 -04:00
fix madmin SetBucketQuota API signature (#9669)
This commit is contained in:
parent
cdf4815a6b
commit
f1f414ca59
@ -91,11 +91,8 @@ func (adm *AdminClient) GetBucketQuota(ctx context.Context, bucket string) (q Bu
|
|||||||
|
|
||||||
// SetBucketQuota - sets a bucket's quota, if quota is set to '0'
|
// SetBucketQuota - sets a bucket's quota, if quota is set to '0'
|
||||||
// quota is disabled.
|
// quota is disabled.
|
||||||
func (adm *AdminClient) SetBucketQuota(ctx context.Context, bucket string, quota uint64, quotaType QuotaType) error {
|
func (adm *AdminClient) SetBucketQuota(ctx context.Context, bucket string, quota *BucketQuota) error {
|
||||||
data, err := json.Marshal(BucketQuota{
|
data, err := json.Marshal(quota)
|
||||||
Quota: quota,
|
|
||||||
Type: quotaType,
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user