Skip to content

Commit

Permalink
client/storage_buckets: Update for queryOperation revert
Browse files Browse the repository at this point in the history
Part of #292

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Mar 28, 2024
1 parent c8b9fc7 commit 16661b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/incus_storage_buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (r *ProtocolIncus) CreateStoragePoolBucketBackup(poolName string, bucketNam
return nil, err
}

op, _, err := r.queryOperation("POST", fmt.Sprintf("/storage-pools/%s/buckets/%s/backups", url.PathEscape(poolName), url.PathEscape(bucketName)), backup, "", true)
op, _, err := r.queryOperation("POST", fmt.Sprintf("/storage-pools/%s/buckets/%s/backups", url.PathEscape(poolName), url.PathEscape(bucketName)), backup, "")
if err != nil {
return nil, err
}
Expand All @@ -264,7 +264,7 @@ func (r *ProtocolIncus) DeleteStoragePoolBucketBackup(pool string, bucketName st
return nil, err
}

op, _, err := r.queryOperation("DELETE", fmt.Sprintf("/storage-pools/%s/buckets/%s/backups/%s", url.PathEscape(pool), url.PathEscape(bucketName), url.PathEscape(name)), nil, "", true)
op, _, err := r.queryOperation("DELETE", fmt.Sprintf("/storage-pools/%s/buckets/%s/backups/%s", url.PathEscape(pool), url.PathEscape(bucketName), url.PathEscape(name)), nil, "")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 16661b3

Please sign in to comment.