We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e983c commit 7f0c7bfCopy full SHA for 7f0c7bf
1 file changed
pkg/stackit/stackiterrors/errors.go
@@ -29,7 +29,7 @@ func IsTooManyDevicesError(err error) bool {
29
30
// TODO: Improve this if possible
31
return oAPIError.StatusCode == http.StatusForbidden &&
32
- strings.Contains(oAPIError.ErrorMessage, "maximum allowed number of disk devices")
+ strings.Contains(string(oAPIError.Body), "maximum allowed number of disk devices")
33
}
34
35
func IgnoreNotFound(err error) error {
0 commit comments