diff --git a/master/internal/rm/multirm/multirm.go b/master/internal/rm/multirm/multirm.go index 97f1f573406..cd396c7558e 100644 --- a/master/internal/rm/multirm/multirm.go +++ b/master/internal/rm/multirm/multirm.go @@ -2,6 +2,7 @@ package multirm import ( "fmt" + "slices" "github.com/sirupsen/logrus" "golang.org/x/exp/maps" @@ -19,6 +20,7 @@ import ( // ErrRMConflict returns a detailed error if multiple resource managers define a resource pool // with the same name. func ErrRMConflict(rmNames []string, rp string) error { + slices.Sort(rmNames) return fmt.Errorf("resource pool %s exists for both resource managers %v,", rp, rmNames) }