diff --git a/internal/cli/backup/restores/start.go b/internal/cli/backup/restores/start.go index eb52cbece5..aae2d61905 100644 --- a/internal/cli/backup/restores/start.go +++ b/internal/cli/backup/restores/start.go @@ -174,7 +174,7 @@ func (opts *StartOpts) checkIsFlexCluster() error { return nil } - if !atlasv2.IsErrorCode(err, cannotUseFlexWithClusterApisErrorCode) { + if !atlasClustersPinned.IsErrorCode(err, cannotUseFlexWithClusterApisErrorCode) { return err }