Commit 0563fa6
committed
cli/command/system/runInfo: set negotiated API version when available
The current logic was ignoring (e.g.) `--format=json` formats, and was
only setting the negotiated API version if no format was specified.
While we do want to avoid calling the API if possible, we do already
check if the given template requires a server connection, so let's
move updating the API version to that block.
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent fc99fe2 commit 0563fa6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
0 commit comments