From 41c1fa3a78573028373317c98b2a1b5f266bf8a5 Mon Sep 17 00:00:00 2001 From: Ronald Ekambi Date: Fri, 28 Jul 2023 17:49:05 -0400 Subject: [PATCH] fix typo --- agent/structs/config_entry_jwt_provider_oss.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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