diff --git a/.changelog/19270.txt b/.changelog/19270.txt new file mode 100644 index 000000000..50b19082f --- /dev/null +++ b/.changelog/19270.txt @@ -0,0 +1,3 @@ +```release-note:bug +variables: Fixed a bug where poststop tasks were not allowed access to Variables +``` diff --git a/nomad/acl.go b/nomad/acl.go index 90afed9fd..43960bda7 100644 --- a/nomad/acl.go +++ b/nomad/acl.go @@ -247,7 +247,7 @@ func (s *Server) VerifyClaim(token string) (*structs.IdentityClaims, error) { } // the claims for terminal allocs are always treated as expired - if alloc.TerminalStatus() { + if alloc.ClientTerminalStatus() { return nil, fmt.Errorf("allocation is terminal") }