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/ bin/
.idea/

View File

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

View File

@ -20,7 +20,8 @@ import (
func Autodetect(core *Core) error { func Autodetect(core *Core) error {
autoDetectSwarmMode(core) autoDetectSwarmMode(core)
if len(core.Autoscalers) == 0 { 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 return nil
} }