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_r289196121
##########
File path: cli/io/config.go
##########
@@ -114,32 +111,20 @@ func (config *Config) read() {
// "target": "http://geoffs-macbook-pro.local:8081"
//}
-func (config *Config) getCredentials(target string) (username string, password
string, err error) {
- credentials, found :=
config.Map[credentialsKey].(map[string]interface{})
+func (config *Config) getCredentials(target string) (credentials string, err
error) {
+ credentialsMap, found :=
config.Map[credentialsKey].(map[string]interface{})
Review comment:
we must improve the JSON handling and parsing, but that's another PR!
----------------------------------------------------------------
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