Skip to content

Commit

Permalink
include spring:cloud:config values when (re)building the config serve…
Browse files Browse the repository at this point in the history
…r dictionary #269
  • Loading branch information
Tim Hess committed Apr 1, 2020
1 parent 83368eb commit 4e5008e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ internal ConfigEnvironment DoLoad(bool updateDictionary = true)
"Located environment: {name}, {profiles}, {label}, {version}, {state}", env.Name, env.Profiles, env.Label, env.Version, env.State);
if (updateDictionary)
{
IDictionary<string, string> newData = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
var newData = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);

if (!string.IsNullOrEmpty(env.State))
{
Expand All @@ -287,6 +287,9 @@ internal ConfigEnvironment DoLoad(bool updateDictionary = true)
}

Data = newData;

// Adds client settings (e.g spring:cloud:config:uri, etc) back to the (new) Data dictionary
AddConfigServerClientSettings();
}

return env;
Expand Down

0 comments on commit 4e5008e

Please sign in to comment.