Skip to content

Commit

Permalink
Merge pull request #322 from jacobwolfaws/master
Browse files Browse the repository at this point in the history
Remove ErrFsExistsDiffSize error on incompatible parameter
  • Loading branch information
k8s-ci-robot committed May 30, 2023
2 parents ec09096 + 1ba3e46 commit 1965caa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1965caa

Please sign in to comment.