Skip to content

Commit

Permalink
Fix incorrect warnings when emulating extensions with httpsTriggers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joehan committed Jun 28, 2023
1 parent 197506a commit 4db12d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Increased extension instance create poll timeout to 1h to match backend (#5969).
- Refactored `ext:install` to use the latest extension metadata. (#5997)
- Fixed issue where missing trigger warnings would be wrongly displayed when emulating extensions with HTTPS triggers. (#6055)
- Normalized extension root path before usage in `ext:dev:upload`. (#6054)
3 changes: 2 additions & 1 deletion src/extensions/emulator/triggerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ export function functionResourceToEmulatedTriggerDefintion(
proto.convertIfPresent(etd, properties, "timeoutSeconds", "timeout", proto.secondsFromDuration);
proto.convertIfPresent(etd, properties, "regions", "location", (str: string) => [str]);
proto.copyIfPresent(etd, properties, "availableMemoryMb");
if (properties.httpsTrigger) {
if (properties.httpsTrigger !== undefined) {
// Need to explcitly check undefined since {} is falsey
etd.httpsTrigger = properties.httpsTrigger;
}
if (properties.eventTrigger) {
Expand Down

0 comments on commit 4db12d2

Please sign in to comment.