Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions v9/pkg/upcloud/object_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"github.com/google/uuid"
)

func (c *ClientWithResponses) WaitForObjectStorageOperationalState(ctx context.Context, serviceUUID string, desiredState string) (*ObjectStorage2GetService200, error) {
func (c *ClientWithResponses) WaitForObjectStorageOperationalState(ctx context.Context, serviceUUID string, desiredState string) (*GetObjectStorage200, error) {
svcUUID, err := uuid.Parse(serviceUUID)
if err != nil {
return nil, err
}

return retry(ctx, func(_ int, _ context.Context) (*ObjectStorage2GetService200, error) {
return retry(ctx, func(_ int, _ context.Context) (*GetObjectStorage200, error) {
resp, retryErr := c.GetObjectStorageWithResponse(ctx, svcUUID)
if retryErr != nil {
return nil, retryErr
Expand All @@ -41,7 +41,7 @@ func (c *ClientWithResponses) WaitForObjectStorageOperationalState(ctx context.C
if resp.JSON200 != nil {
return resp.JSON200, nil
}
var dest ObjectStorage2GetService200
var dest GetObjectStorage200
if retryErr = json.Unmarshal(resp.Body, &dest); retryErr == nil {
return &dest, nil
}
Expand All @@ -58,7 +58,7 @@ func (c *ClientWithResponses) WaitForObjectStorageDeletion(ctx context.Context,
return err
}

return retryUntilNil(ctx, func(_ int, _ context.Context) (*ObjectStorage2GetService200, error) {
return retryUntilNil(ctx, func(_ int, _ context.Context) (*GetObjectStorage200, error) {
resp, retryErr := c.GetObjectStorageWithResponse(ctx, svcUUID)
if retryErr != nil {
return nil, retryErr
Expand Down
2 changes: 1 addition & 1 deletion v9/pkg/upcloud/spec_version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package upcloud

const specVersion = "0.0.54"
const specVersion = "0.0.65"
Loading
Loading