MG-2125 - Unable to enable thing using bootstrap (#2132)

Signed-off-by: JeffMboya <jangina.mboya@gmail.com>
This commit is contained in:
JMboya
2024-04-03 15:40:05 +03:00
committed by GitHub
parent eb6b201a2a
commit 8b930e81e9
+4
View File
@@ -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
}
}