Skip to content

Commit

Permalink
fix: uppercase chars in connection reference fails (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Ashworth <tom.ashworth@capgemini.com>
  • Loading branch information
ewingjm and tdashworth authored May 21, 2021
1 parent 5c4c0bc commit f42dac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ protected IDictionary<string, string> GetSettings(string prefix)

var runtimeSettingMappings = this.RuntimeSettings
.Where(s => s.Key.StartsWith($"{prefix}:"))
.ToDictionary(s => s.Key.Remove(0, prefix.Length + 1), s => s.Value.ToString());
.ToDictionary(kvp => kvp.Key.Remove(0, prefix.Length + 1).ToLower(), kvp => kvp.Value.ToString());

this.TraceLoggerAdapter.LogDebug($"{mappings.Count} matching settings found in runtime settings");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void ConnectConnectionReferences(IDictionary<string, string> connectionMa
},
{
Constants.ConnectionReference.Fields.ConnectionId,
connectionMap[e.GetAttributeValue<string>(Constants.ConnectionReference.Fields.ConnectionReferenceLogicalName)]
connectionMap[e.GetAttributeValue<string>(Constants.ConnectionReference.Fields.ConnectionReferenceLogicalName).ToLower()]
},
},
},
Expand Down

0 comments on commit f42dac9

Please sign in to comment.