Skip to content

Commit

Permalink
use default partition constant
Browse files Browse the repository at this point in the history
  • Loading branch information
zalimeni committed May 28, 2024
1 parent 329bdc1 commit 0f5d0ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/discovery/query_fetcher_v1_ce.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package discovery

import (
"github.com/hashicorp/consul/acl"
"github.com/hashicorp/consul/api"
)

func (f *V1DataFetcher) NormalizeRequest(req *QueryPayload) {
Expand All @@ -15,7 +16,7 @@ func (f *V1DataFetcher) NormalizeRequest(req *QueryPayload) {
}

func validateEnterpriseTenancy(req QueryTenancy) error {
if !(req.Namespace == "" || req.Namespace == acl.DefaultNamespaceName) || !(req.Partition == acl.DefaultPartitionName || req.Partition == "default") {
if !(req.Namespace == "" || req.Namespace == acl.DefaultNamespaceName) || !(req.Partition == "" || req.Partition == api.PartitionDefaultName) {
return ErrNotSupported
}
return nil
Expand Down

0 comments on commit 0f5d0ad

Please sign in to comment.