Skip to content

Commit

Permalink
Comment default location
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Nov 11, 2023
1 parent 5b3fb36 commit 1cb0ece
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions azurecontainerapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ export class azurecontainerapps {
location = await this.appHelper.getExistingContainerAppEnvironmentLocation(environmentName, this.resourceGroup);
}
// If no location was provided, use the default location for the Container App service
if (this.util.isNullOrEmpty(location)) {
location = await this.appHelper.getDefaultContainerAppLocation();
}
// if (this.util.isNullOrEmpty(location)) {
// location = await this.appHelper.getDefaultContainerAppLocation();
// }

return location;
}
Expand Down
13 changes: 6 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ var azurecontainerapps = /** @class */ (function () {
case 3:
location = _a.sent();
_a.label = 4;
case 4:
if (!this.util.isNullOrEmpty(location)) return [3 /*break*/, 6];
return [4 /*yield*/, this.appHelper.getDefaultContainerAppLocation()];
case 5:
location = _a.sent();
_a.label = 6;
case 6: return [2 /*return*/, location];
case 4:
// If no location was provided, use the default location for the Container App service
// if (this.util.isNullOrEmpty(location)) {
// location = await this.appHelper.getDefaultContainerAppLocation();
// }
return [2 /*return*/, location];
}
});
});
Expand Down

0 comments on commit 1cb0ece

Please sign in to comment.