Merge pull request #11842 from hashicorp/b-name-oss-files-consistently

chore: ensure consistent file naming for non-enterprise files.
This commit is contained in:
James Rasell
2022-01-14 08:13:49 +01:00
committed by GitHub
4 changed files with 10 additions and 10 deletions

View File

@@ -5,6 +5,6 @@ package nomad
// allocQuota returns the quota object associated with the allocation. In
// anything but Premium this will always be empty
func (n *nomadFSM) allocQuota(allocID string) (string, error) {
func (n *nomadFSM) allocQuota(_ string) (string, error) {
return "", nil
}

View File

@@ -23,6 +23,6 @@ func refreshIndex(snap *state.StateSnapshot) (uint64, error) {
}
// evaluatePlanQuota returns whether the plan would be over quota
func evaluatePlanQuota(snap *state.StateSnapshot, plan *structs.Plan) (bool, error) {
func evaluatePlanQuota(_ *state.StateSnapshot, _ *structs.Plan) (bool, error) {
return false, nil
}

View File

@@ -1,8 +0,0 @@
//go:build !ent
// +build !ent
package scheduler
func NewQuotaIterator(ctx Context, source FeasibleIterator) FeasibleIterator {
return source
}

8
scheduler/stack_oss.go Normal file
View File

@@ -0,0 +1,8 @@
//go:build !ent
// +build !ent
package scheduler
func NewQuotaIterator(_ Context, source FeasibleIterator) FeasibleIterator {
return source
}