fix platform version field

This commit is contained in:
Roberto Cirillo 2023-02-16 12:45:14 +01:00
parent 5b9f1d927f
commit d53a917c45
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ public class ServiceEndpointResource {
if (Objects.nonNull(resourceProfile) && isRoleEnabled()){
ServiceEndpoint newResource= new ServiceEndpoint();
ServiceEndpoint.Profile profile=newResource.newProfile().category(resourceProfile.getCategory()).name(resourceProfile.getName());
ServiceEndpoint.Platform platform=profile.newPlatform().name(resourceProfile.getPlatform());
platform.version(resourceProfile.getPlatformVersion());
ServiceEndpoint. platform=profile.newPlatform().name(resourceProfile.getPlatform()).version(resourceProfile.getPlatformVersion());
ServiceEndpoint.AccessPoint ap=new ServiceEndpoint.AccessPoint();
ap.name(resourceProfile.getAccessPointName());
ap.address(resourceProfile.getAccessPointAddress());