From 740b5aa7723246d5bd7af6d695711264eeee5348 Mon Sep 17 00:00:00 2001 From: dwertent Date: Mon, 25 Oct 2021 11:55:08 +0300 Subject: [PATCH] add full url --- cautils/customerloader.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cautils/customerloader.go b/cautils/customerloader.go index 499e7630..4c839583 100644 --- a/cautils/customerloader.go +++ b/cautils/customerloader.go @@ -158,6 +158,7 @@ func (c *ClusterConfig) GetDefaultNS() string { return c.defau func (c *ClusterConfig) GetBackendAPI() getter.IBackend { return c.backendAPI } func (c *ClusterConfig) GenerateURL() { + message := "\nCheckout for more cool features: " u := url.URL{} u.Scheme = "https" @@ -165,9 +166,8 @@ func (c *ClusterConfig) GenerateURL() { if c.configObj == nil { return } - message := fmt.Sprintf("\nCheckout for more cool features: https://%s\n", getter.GetArmoAPIConnector().GetFrontendURL()) if c.configObj.CustomerAdminEMail != "" { - InfoTextDisplay(os.Stdout, message+"\n") + InfoTextDisplay(os.Stdout, message+u.String()+"\n") return } u.Path = "account/sign-up" @@ -176,8 +176,7 @@ func (c *ClusterConfig) GenerateURL() { q.Add("customerGUID", c.configObj.CustomerGUID) u.RawQuery = q.Encode() - InfoTextDisplay(os.Stdout, message+"\n") - + InfoTextDisplay(os.Stdout, message+u.String()+"\n") } func (c *ClusterConfig) GetCustomerGUID() string {