Fix up access token credentials composing
This commit is contained in:
parent
d14f6a4ddd
commit
71ac63d2e9
@ -160,7 +160,7 @@ public class DeviceBulkImportService extends AbstractBulkImportService<Device> {
|
||||
}
|
||||
|
||||
private void setUpAccessTokenCredentials(Map<BulkImportColumnType, String> fields, DeviceCredentials credentials) {
|
||||
credentials.setCredentialsValue(Optional.ofNullable(fields.get(BulkImportColumnType.ACCESS_TOKEN))
|
||||
credentials.setCredentialsId(Optional.ofNullable(fields.get(BulkImportColumnType.ACCESS_TOKEN))
|
||||
.orElseGet(() -> RandomStringUtils.randomAlphanumeric(20)));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user