Fixed bug on updated

This commit is contained in:
Luca Frosini 2022-02-23 17:35:21 +01:00
parent f298f59dc5
commit 1dbf73bc41
1 changed files with 1 additions and 4 deletions

View File

@ -686,10 +686,7 @@ public class GCoreISConfigurationProxy {
public ServiceCatalogueConfiguration updateOnIS(ServiceEndpoint serviceEndpoint) throws Exception {
RegistryPublisher registryPublisher = RegistryPublisherFactory.create();
String id = serviceEndpoint.id();
if(catalogueConfiguration.getID().compareTo(id)!=0) {
catalogueConfiguration.setID(id);
}
catalogueConfiguration.setID(id);
serviceEndpoint = createServiceEndpoint(serviceEndpoint);
registryPublisher.update(serviceEndpoint);
return catalogueConfiguration;