Skip to content

Commit

Permalink
MG-2125 - Unable to enable thing using bootstrap (absmach#2132)
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <[email protected]>
  • Loading branch information
JeffMboya authored Apr 3, 2024
1 parent eb6b201 commit 8b930e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ func (bs bootstrapService) ChangeState(ctx context.Context, token, id string, st
ThingID: cfg.ThingID,
}
if err := bs.sdk.Connect(conIDs, token); err != nil {
// Ignore conflict errors as they indicate the connection already exists.
if errors.Contains(err, svcerr.ErrConflict) {
continue
}
return ErrThings
}
}
Expand Down

0 comments on commit 8b930e8

Please sign in to comment.