Skip to content

Commit

Permalink
Minor code comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewc committed Apr 17, 2019
1 parent c8c4729 commit 0fdb793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,16 @@ internal static bool IsSyncTriggersEnvironment(IScriptWebHostEnvironment webHost
{
if (environment.IsCoreToolsEnvironment())
{
// don't sync triggers when running locally or not running in app service in general
// don't sync triggers when running locally or not running in a cloud
// hosted environment
return false;
}

if (environment.GetEnvironmentVariable(EnvironmentSettingNames.WebSiteAuthEncryptionKey) == null)
{
// We don't have the encryption key required for SetTriggers,
// so sync calls would fail auth anyways.
// This might happen in other not core tools environments for example.
// This might happen in when running locally for example.
return false;
}

Expand Down

0 comments on commit 0fdb793

Please sign in to comment.