Merge pull request #28 from gianarb/hotfix/failing-with-no-groups

Avoiding failing with no groups
This commit is contained in:
Gianluca Arbezzano 2017-08-08 21:01:31 +02:00 committed by GitHub
commit f4a5740a50
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
bin/
.idea/

View File

@ -109,8 +109,8 @@ func (c *DaemonCmd) Help() string {
helpText := `
Usage: start gourmet API handler.
Options:
-debug_level=info Servert port
-port=:8000 Servert port
-debug Debug flag
-port=:8000 Server port
-config=/etc/daemon.yml Configuration path
`
return strings.TrimSpace(helpText)

View File

@ -20,7 +20,8 @@ import (
func Autodetect(core *Core) error {
autoDetectSwarmMode(core)
if len(core.Autoscalers) == 0 {
return errors.New("we didn't detect any autoscaling group")
//return errors.New("we didn't detect any autoscaling group")
logrus.Info("no autoscaling group detected for now")
}
return nil
}