SUPPORT-9115: Fix
This commit is contained in:
parent
1d97152772
commit
04a5937d99
1 changed files with 4 additions and 4 deletions
|
|
@ -40,8 +40,8 @@ public class ErvuDirectoriesService {
|
|||
MethodHandles.lookup().lookupClass());
|
||||
@Value("${idm.url}")
|
||||
private String idmUrl;
|
||||
@Value("${ervu.collection:domain, role}")
|
||||
private String ervuCollection;
|
||||
@Value("${ervu.directories:domain, role}")
|
||||
private String ervuDirectories;
|
||||
@Value("${ervu.admin.role:gomu_supervisor, system_administrator, security_administrator}")
|
||||
private String ervuAdminRole;
|
||||
@Autowired
|
||||
|
|
@ -58,8 +58,8 @@ public class ErvuDirectoriesService {
|
|||
})
|
||||
public void updateDirectories() {
|
||||
try {
|
||||
String[] ervuCollectionArray = ervuCollection.split(",");
|
||||
Arrays.stream(ervuCollectionArray).forEach(ervuCollection -> {
|
||||
String[] ervuDirectoriesArray = ervuDirectories.split(",");
|
||||
Arrays.stream(ervuDirectoriesArray).forEach(ervuCollection -> {
|
||||
String targetUrl = idmUrl + "/reconcile/"+ ervuCollection.trim() + "/to/kafka/v1";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue