mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-22 08:14:45 +00:00
Merge pull request #28 from gianarb/hotfix/failing-with-no-groups
Avoiding failing with no groups
This commit is contained in:
commit
f4a5740a50
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
bin/
|
bin/
|
||||||
|
.idea/
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user