This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/main by this push:
new ce8a3e0 Prevent incorrect timeout value from being set (#103)
ce8a3e0 is described below
commit ce8a3e05d69a1b69970ed9a579d17684dbe2dafc
Author: Pearl Dsilva <[email protected]>
AuthorDate: Tue Oct 5 17:07:51 2021 +0530
Prevent incorrect timeout value from being set (#103)
---
config/config.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/config.go b/config/config.go
index 5be1336..e9d6a02 100644
--- a/config/config.go
+++ b/config/config.go
@@ -321,6 +321,7 @@ func (c *Config) UpdateConfig(key string, value string,
update bool) {
intValue, err := strconv.Atoi(value)
if err != nil {
fmt.Println("Error caught while setting timeout:", err)
+ return
}
c.Core.Timeout = intValue
case "profile":