mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user