open-nomad/.changelog/16237.txt
Seth Hoenig c9ffd1274b
api: fix a panic and tweak some exported types (#16237)
This PR
 - fixes a panic in GetItems when looking up a variable that does not exist.
 - deprecates GetItems in favor of GetVariableItems which avoids returning a pointer to a map
 - deprecates ErrVariableNotFound in favor of ErrVariablePathNotFound which is an actual error type
 - does some minor code cleanup to make linters happier
2023-02-22 08:17:22 -06:00

12 lines
391 B
Plaintext

```release-note:bug
api: Fixed a bug where Variables.GetItems would panic if variable did not exist
```
```release-note:deprecation
api: Deprecated Variables.GetItems in favor of Variables.GetVariableItems to avoid returning a pointer to a map
```
```release-note:deprecation
api: Deprecated ErrVariableNotFound in favor of ErrVariablePathNotFound to correctly represent an error type
```