Skip to content

Commit

Permalink
state: fix eval list by prefix with * namespace (#13551)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Jul 8, 2022
1 parent 17649ee commit c3494d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/13551.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
state: Fix listing evaluations from all namespaces
```
3 changes: 2 additions & 1 deletion nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3110,7 +3110,8 @@ func evalNamespaceFilter(namespace string) func(interface{}) bool {
return true
}

return eval.Namespace != namespace
return namespace != structs.AllNamespacesSentinel &&
eval.Namespace != namespace
}
}

Expand Down

0 comments on commit c3494d8

Please sign in to comment.