Skip to content

Commit ad02f1c

Browse files
committed
Enable SyncTriggers extended format
1 parent b25f52a commit ad02f1c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ namespace Microsoft.Azure.WebJobs.Script.WebHost.Management
2727
{
2828
public class FunctionsSyncManager : IFunctionsSyncManager, IDisposable
2929
{
30-
// Until ANT 82 is fully released, the default value is disabled and we continue
31-
// to return just the trigger data.
32-
// After ANT 82, we will change the default to enabled.
33-
// Note that this app setting is honored by both GeoMaster and Runtime.
34-
public const string AzureWebsiteArmCacheEnabledDefaultValue = "0";
35-
3630
private const string HubName = "HubName";
3731
private const string TaskHubName = "taskHubName";
3832
private const string Connection = "connection";
@@ -71,7 +65,7 @@ internal bool ArmCacheEnabled
7165
{
7266
get
7367
{
74-
return _environment.GetEnvironmentVariableOrDefault(EnvironmentSettingNames.AzureWebsiteArmCacheEnabled, AzureWebsiteArmCacheEnabledDefaultValue) == "1";
68+
return _environment.GetEnvironmentVariableOrDefault(EnvironmentSettingNames.AzureWebsiteArmCacheEnabled, "1") == "1";
7569
}
7670
}
7771

test/WebJobs.Script.Tests/Managment/FunctionsSyncManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public async Task TrySyncTriggers_LocalEnvironment_ReturnsFalse()
156156
public void ArmCacheEnabled_VerifyDefault()
157157
{
158158
_mockEnvironment.Setup(p => p.GetEnvironmentVariable(EnvironmentSettingNames.AzureWebsiteArmCacheEnabled)).Returns((string)null);
159-
Assert.False(_functionsSyncManager.ArmCacheEnabled);
159+
Assert.True(_functionsSyncManager.ArmCacheEnabled);
160160
}
161161

162162
[Theory]

0 commit comments

Comments
 (0)