fix(cli): keep an environment endpoint on the default port known to status

status reported endpoint null and exited 1 for a healthy server when FLOCI_ENDPOINT equalled the product default, because its check ignored the environment while the published port was skipped in favour of it. Addresses the review of #75.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura committed 2026-11-04 00:38:42 -06:00
1 parent 33367ecb9b
commit 0393cc08b8
2 files changed
+21 -1

No files matched your search

@@ -168,7 +168,8 @@ public class GlobalOptions {
/** Whether a configured endpoint can identify this instance without a container lookup. */
public boolean canUseConfiguredEndpoint() {
return typed("--endpoint") || !product.defaultEndpoint().equals(endpoint)
return typed("--endpoint") || endpoint.equals(endpointFromEnv)
|| !product.defaultEndpoint().equals(endpoint)
|| product.defaultContainer().equals(container);
}