Avoiding failing with no groups

This commit is contained in:
Manuel Bovo 2017-07-17 15:14:59 +02:00 committed by Gianluca Arbezzano
parent 29cfd3d109
commit 23c448ebfa
No known key found for this signature in database
GPG Key ID: 9505D2809E1D6180
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

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

View File

@ -77,8 +77,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
}