ntg confirmed ok, back to mock

This commit is contained in:
Bel LaPointe
2022-01-09 22:50:34 -05:00
parent 1320bd1884
commit afa1bdf56f
4 changed files with 16 additions and 5 deletions

View File

@@ -56,7 +56,11 @@ func once() error {
func getJobs() ([]broker.Job, error) {
states := config.Get().States
brokers := []broker.Broker{broker.NewNTGVision().WithMock()}
ntg := broker.NewNTGVision()
if config.Get().Brokers.NTG.Mock {
ntg = ntg.WithMock()
}
brokers := []broker.Broker{ntg}
jobs := []broker.Job{}
for _, broker := range brokers {
somejobs, err := broker.Search(states)