geomacy commented on a change in pull request #77: Allow sent user defined
headers and omit credentials if not needed
URL: https://github.com/apache/brooklyn-client/pull/77#discussion_r289194039
##########
File path: cli/commands/login.go
##########
@@ -168,3 +206,13 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
}
fmt.Printf("Connected to Brooklyn version %s at %s\n",
loginVersion.Version, cmd.network.BrooklynUrl)
}
+
+func (cmd *Login) isBasicAuth() bool {
+ return strings.EqualFold(cmd.network.AuthorizationType,BASIC_AUTH)
Review comment:
this can just be simply `cmd.network.AuthorizationType == BASIC_AUTH` and
doesn't really need to be in a separate function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services