From c3494d8b674bf31206ca77e11919a8a19597f82c Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 7 Jul 2022 14:21:51 -0400 Subject: [PATCH] state: fix eval list by prefix with * namespace (#13551) --- .changelog/13551.txt | 3 +++ nomad/state/state_store.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changelog/13551.txt diff --git a/.changelog/13551.txt b/.changelog/13551.txt new file mode 100644 index 00000000000..e31859a7033 --- /dev/null +++ b/.changelog/13551.txt @@ -0,0 +1,3 @@ +```release-note:bug +state: Fix listing evaluations from all namespaces +``` diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index 16ea849c176..a23ad5324af 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -3110,7 +3110,8 @@ func evalNamespaceFilter(namespace string) func(interface{}) bool { return true } - return eval.Namespace != namespace + return namespace != structs.AllNamespacesSentinel && + eval.Namespace != namespace } }