diff --git a/agent/structs/config_entry_jwt_provider_oss.go b/agent/structs/config_entry_jwt_provider_oss.go index a2026e0cdff1e..533f349c01e52 100644 --- a/agent/structs/config_entry_jwt_provider_oss.go +++ b/agent/structs/config_entry_jwt_provider_oss.go @@ -17,8 +17,8 @@ func (e *JWTProviderConfigEntry) validatePartitionAndNamespace() error { return fmt.Errorf("Partitions are an enterprise only feature") } - if !acl.IsDefaultPartition(e.PartitionOrDefault()) { - return fmt.Errorf("Namespace are an enterprise only feature") + if acl.DefaultNamespaceName != e.NamespaceOrDefault() { + return fmt.Errorf("Namespaces are an enterprise only feature") } return nil