Skip to content

Commit bbaa66e

Browse files
small bug fix around duplicate out put
1 parent c3c669b commit bbaa66e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Modules/Intent.Modules.AzureFunctions/Intent.AzureFunctions.imodspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package>
33
<id>Intent.AzureFunctions</id>
4-
<version>5.0.20</version>
4+
<version>5.0.21-pre.0</version>
55
<supportedClientVersions>[4.5.15-a, 5.0.0-a)</supportedClientVersions>
66
<summary>Provides support to describe Azure Functions in the Services designer</summary>
77
<description>Provides support to describe Azure Functions in the Services designer</description>

Modules/Intent.Modules.AzureFunctions/Templates/Isolated/Program/ProgramTemplatePartial.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ public IProgramFile ConfigureAppConfiguration(
227227
parameters: parameters,
228228
configure: (block, @params) =>
229229
{
230-
block.AddStatement("config.AddEnvironmentVariables();");
230+
var existing = block.FindStatement(s => s.GetText("").StartsWith("config.AddEnvironmentVariables"));
231+
if (existing is null)
232+
{
233+
block.AddStatement("config.AddEnvironmentVariables();");
234+
}
231235
configure?.Invoke(block, @params);
232236
},
233237
priority: priority);

0 commit comments

Comments
 (0)