From 1ba3e46eecaf00a87e1979b2a85bd2fa00a94c34 Mon Sep 17 00:00:00 2001 From: Jacob Wolf Date: Tue, 30 May 2023 15:09:38 +0000 Subject: [PATCH] Remove ErrFsExistsDiffSize error on incompatible parameter --- pkg/cloud/cloud.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/cloud/cloud.go b/pkg/cloud/cloud.go index 00afb8ee..433aaadb 100644 --- a/pkg/cloud/cloud.go +++ b/pkg/cloud/cloud.go @@ -235,9 +235,6 @@ func (c *cloud) CreateFileSystem(ctx context.Context, volumeName string, fileSys output, err := c.fsx.CreateFileSystemWithContext(ctx, input) if err != nil { - if isIncompatibleParameter(err) { - return nil, ErrFsExistsDiffSize - } return nil, fmt.Errorf("CreateFileSystem failed: %v", err) } @@ -433,15 +430,6 @@ func isFileSystemNotFound(err error) bool { return false } -func isIncompatibleParameter(err error) bool { - if awsErr, ok := err.(awserr.Error); ok { - if awsErr.Code() == fsx.ErrCodeIncompatibleParameterError { - return true - } - } - return false -} - // isBadRequestUpdateInProgress identifies an error returned from the FSx API as a BadRequest with an "update already // in progress" message. func isBadRequestUpdateInProgress(err error) bool {