Skip to content

Do not combine profiles when spring.cloud.config.pofiles is set.#2354

Merged
ryanjbaxter merged 1 commit intospring-cloud:3.1.xfrom
ryanjbaxter:fix-combine-profiles
Nov 21, 2023
Merged

Do not combine profiles when spring.cloud.config.pofiles is set.#2354
ryanjbaxter merged 1 commit intospring-cloud:3.1.xfrom
ryanjbaxter:fix-combine-profiles

Conversation

@ryanjbaxter
Copy link
Copy Markdown
Contributor

Fixes #2349

.collect(Collectors.toList());
// If spring.cloud.config.profiles is set it should override all other
// profiles set other ways
return combinedProfiles;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes this method weird right? It's no longer combining profiles. It's returning either the config props profiles, or the active profiles, or default profiles

@spencergibb
Copy link
Copy Markdown
Member

Nothing else broke with the build, so maybe it is ok, but the terminology of the method and some variables don't make sense anymore.

Fixes spring-cloud#2349

Revert "Make method clearer"

This reverts commit fda8596568fb035d8c7839eeef6edaae712b427f.

Make method clearer
@ryanjbaxter
Copy link
Copy Markdown
Contributor Author

@spencergibb let me know if this makes things clearer

@ryanjbaxter ryanjbaxter merged commit 861ed67 into spring-cloud:3.1.x Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version 4.0.4, unable to connect to Cloud Config if we have cloud config profile and spring environment profile.

3 participants