Skip to content

Commit

Permalink
Updates field name for Cloud resource location. (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbleigh committed Jul 16, 2019
1 parent 0be2086 commit 1d46c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fixes issue deploying scheduled functions in for non `us-central` project locations.
4 changes: 2 additions & 2 deletions src/functionsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ exports.idsToVarName = function(projectId, configId, varId) {
};

exports.getAppEngineLocation = function(config) {
var appEngineLocation = config.cloudResourceLocation;
var appEngineLocation = config.locationId;
if (appEngineLocation && appEngineLocation.match(/[^\d]$/)) {
// For some regions, such as us-central1, the cloudResourceLocation has the trailing digit cut off
// For some regions, such as us-central1, the locationId has the trailing digit cut off
appEngineLocation = appEngineLocation + "1";
}
return appEngineLocation || "us-central1";
Expand Down

0 comments on commit 1d46c48

Please sign in to comment.