Files
access-manager-api/app/pve/utils.go
T
alu 30a4264bb1
tronnet/workflows: Static Analysis -- Golang / static-go (push) Successful in 13s
minor refactoring
2026-08-31 20:32:45 +00:00

16 lines
355 B
Go

package pve
import (
"strings"
"github.com/luthermonson/go-proxmox"
)
func IsProxmoxNotFound(err error) bool {
if err != nil {
// for whatever reason proxmox returns 500 for user/group/pool not found
return proxmox.IsNotFound(err) || strings.Contains(err.Error(), "no such") || strings.Contains(err.Error(), "does not exist")
}
return false
}