Skip to content

Commit

Permalink
PMM-12375 respect skipConnectionCheck param
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Sep 21, 2023
1 parent 9c3de41 commit 09db068
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions managed/services/inventory/agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ func (as *AgentsService) AddMySQLdExporter(ctx context.Context, req *inventorypb
if err = as.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down Expand Up @@ -336,10 +336,10 @@ func (as *AgentsService) AddMongoDBExporter(ctx context.Context, req *inventoryp
if err = as.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down Expand Up @@ -530,10 +530,10 @@ func (as *AgentsService) AddPostgresExporter(ctx context.Context, req *inventory
if err = as.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down Expand Up @@ -658,10 +658,10 @@ func (as *AgentsService) AddProxySQLExporter(ctx context.Context, req *inventory
if err = as.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = as.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down
6 changes: 3 additions & 3 deletions managed/services/management/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe
if err = s.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down
6 changes: 3 additions & 3 deletions managed/services/management/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgr
if err = s.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down
6 changes: 3 additions & 3 deletions managed/services/management/proxysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL
if err = s.cc.CheckConnectionToService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, row); err != nil {
return err
}
}

agent, err := services.ToAPIAgent(tx.Querier, row)
Expand Down

0 comments on commit 09db068

Please sign in to comment.