You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/09/18 11:21:52 UTC

[cloudstack-cloudmonkey] branch master updated: network: fix variable name to fix lint error

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git


The following commit(s) were added to refs/heads/master by this push:
     new b2e1c8f  network: fix variable name to fix lint error
b2e1c8f is described below

commit b2e1c8f025639f5a63a6558e047455a60d0dc0aa
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Tue Sep 18 16:51:26 2018 +0530

    network: fix variable name to fix lint error
    
    Signed-off-by: Rohit Yadav <ro...@apache.org>
---
 cmd/network.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/network.go b/cmd/network.go
index 856ae1a..333477f 100644
--- a/cmd/network.go
+++ b/cmd/network.go
@@ -55,13 +55,13 @@ func Login(r *Request) (string, error) {
 	params.Add("domain", r.Config.ActiveProfile.Domain)
 	params.Add("response", "json")
 
-	msUrl, _ := url.Parse(r.Config.ActiveProfile.URL)
-	if sessionCookie := findSessionCookie(r.Client().Jar.Cookies(msUrl)); sessionCookie != nil {
+	msURL, _ := url.Parse(r.Config.ActiveProfile.URL)
+	if sessionCookie := findSessionCookie(r.Client().Jar.Cookies(msURL)); sessionCookie != nil {
 		return sessionCookie.Value, nil
 	}
 
 	spinner := r.Config.StartSpinner("trying to log in...")
-	resp, err := r.Client().PostForm(msUrl.String(), params)
+	resp, err := r.Client().PostForm(msURL.String(), params)
 	r.Config.StopSpinner(spinner)
 
 	if err != nil {