Skip to content

Commit

Permalink
Avoid double profile injection
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 16, 2024
1 parent ef19fe4 commit df72859
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1132,12 +1132,13 @@ private Model readEffectiveModel() throws ModelBuilderException {
throw newModelBuilderException();
}

inputModel = activateFileModel(inputModel);

setRootModel(inputModel);

Model activatedFileModel = activateFileModel(inputModel);

// profile activation
DefaultProfileActivationContext profileActivationContext = getProfileActivationContext(request, inputModel);
DefaultProfileActivationContext profileActivationContext =
getProfileActivationContext(request, activatedFileModel);

List<Profile> activeExternalProfiles = result.getActiveExternalProfiles();

Expand Down

0 comments on commit df72859

Please sign in to comment.