James Rasell
9a1166edcb
cli: fix a bug in operator API when setting HTTPS via address. ( #14635 )
...
Operators may have a setup whereby the TLS config comes from a
source other than setting Nomad specific env vars. In this case,
we should attempt to identify the scheme using the config setting
as a fallback.
2022-09-22 15:43:58 +02:00
Michael Schurter
c23891b976
cli: fix op api method handling
2022-03-01 16:44:15 -08:00
Michael Schurter
3b49cde589
cli: fix op api typos
...
Co-authored-by: Seth Hoenig <seth.a.hoenig@gmail.com >
2022-02-25 16:31:56 -08:00
Michael Schurter
08afbf476f
cli: only return 1 on errors from op api
...
We don't want people to expect stable error codes for errors, and I
don't think these were useful for scripts anyway.
2022-02-25 16:23:31 -08:00
Michael Schurter
a137c1dfe0
cli: add tests and minor fixes for op api
...
Trimmed spaces around header values.
Fixed method getting forced to GET.
2022-02-24 17:06:07 -08:00
Michael Schurter
bd6d7e0057
cli: add filter support
2022-02-24 15:52:54 -08:00
Michael Schurter
6bc962fe03
rename nomad curl to nomad operator api
2022-02-24 15:52:54 -08:00