move variable out of oss-only build into shared file, fixes ent compile error introduced by #8834

This commit is contained in:
Chris Baker
2020-09-10 22:08:25 +00:00
parent ec2f1ecaa1
commit c8e48105f1
2 changed files with 3 additions and 4 deletions

View File

@@ -34,6 +34,9 @@ const (
DispatchPayloadSizeLimit = 16 * 1024
)
// ErrMultipleNamespaces is send when multiple namespaces are used in the OSS setup
var ErrMultipleNamespaces = errors.New("multiple vault namespaces requires Nomad Enterprise")
var (
// allowRescheduleTransition is the transition that allows failed
// allocations to be force rescheduled. We create a one off

View File

@@ -3,7 +3,6 @@
package nomad
import (
"errors"
"fmt"
"strings"
@@ -11,9 +10,6 @@ import (
vapi "github.com/hashicorp/vault/api"
)
// ErrMultipleNamespaces is send when multiple namespaces are used in the OSS setup
var ErrMultipleNamespaces = errors.New("multiple vault namespaces requires Nomad Enterprise")
// enforceSubmitJob is used to check any Sentinel policies for the submit-job scope
func (j *Job) enforceSubmitJob(override bool, job *structs.Job) (error, error) {
return nil, nil