You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/12/10 10:55:24 UTC

[GitHub] [cloudstack-cloudmonkey] soreana commented on a change in pull request #70: Added new option to change default cmk config file.

soreana commented on a change in pull request #70:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/70#discussion_r540071433



##########
File path: config/config.go
##########
@@ -324,10 +325,13 @@ func (c *Config) UpdateConfig(key string, value string, update bool) {
 }
 
 // NewConfig creates or reload config and loads API cache
-func NewConfig() *Config {
+func NewConfig(configFilePath *string) *Config {
 	defaultConf := defaultConfig()
 	defaultConf.Core = nil
 	defaultConf.ActiveProfile = nil
+	if *configFilePath != "" {
+		defaultConf.ConfigFile, _ = filepath.Abs(*configFilePath)

Review comment:
       Thanks @ravening fixed it.




----------------------------------------------------------------
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:
users@infra.apache.org