func Eligible()

in command/eligible.go [29:46]


func Eligible(g chaosmonkey.AppConfigGetter, d deploy.Deployment, app, account, region, stack, cluster string) {
	cfg, err := g.Get(app)
	if err != nil {
		fmt.Printf("Failed to retrieve config for app %s\n%+v", app, err)
		os.Exit(1)
	}

	group := grp.New(app, account, region, stack, cluster)
	instances, err := eligible.Instances(group, cfg.Exceptions, d)
	if err != nil {
		fmt.Print(err)
		os.Exit(1)
	}

	for _, instance := range instances {
		fmt.Println(instance.ID())
	}
}