f8a133a810
When a cluster doesn't have a leader, the `nomad operator debug` command can safely use stale queries to gracefully degrade the consistency of almost all its queries. The query parameter for these API calls was not being set by the command. Some `api` package queries do not include `QueryOptions` because they target a specific agent, but they can potentially be forwarded to other agents. If there is no leader, these forwarded queries will fail. Provide methods to call these APIs with `QueryOptions`.
4 lines
109 B
Plaintext
4 lines
109 B
Plaintext
```release-note:bug
|
|
cli: Fixed a bug where the `-stale` flag was not respected by `nomad operator debug`
|
|
```
|