Skip to content

Commit

Permalink
Fix build failure and trigger pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Sep 24, 2023
1 parent 78ce264 commit 4b89ec8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4972,16 +4972,16 @@ var ContainerAppHelper = /** @class */ (function () {
*/
ContainerAppHelper.prototype.getExistingContainerAppEnvironment = function (resourceGroup) {
return __awaiter(this, void 0, void 0, function () {
var command, executionResult, err_11;
var args, executionResult, err_11;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
core.debug("Attempting to get the existing Container App Environment in resource group \"" + resourceGroup + "\"");
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
command = "containerapp env list -g " + resourceGroup + " --query [0].name\"";
return [4 /*yield*/, new Utility_1.Utility().executeAndthrowIfError("az", command.split(' '))];
args = ["containerapp", "env", "list", "-g", "" + resourceGroup, "--query", "[0].name"];
return [4 /*yield*/, new Utility_1.Utility().executeAndthrowIfError("az", args)];
case 2:
executionResult = _a.sent();
return [2 /*return*/, !executionResult.stderr ? executionResult.stdout : null];
Expand Down Expand Up @@ -5013,7 +5013,7 @@ var ContainerAppHelper = /** @class */ (function () {
_a.trys.push([1, 3, , 4]);
command = "containerapp env create -n " + name + " -g " + resourceGroup;
if (!util.isNullOrEmpty(location)) {
command += '-l' + ("" + location);
command += ' -l' + (" " + location);
}
return [4 /*yield*/, new Utility_1.Utility().executeAndthrowIfError("az", command.split(' '))];
case 2:
Expand Down
6 changes: 3 additions & 3 deletions src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ export class ContainerAppHelper {
public async getExistingContainerAppEnvironment(resourceGroup: string) {
core.debug(`Attempting to get the existing Container App Environment in resource group "${resourceGroup}"`);
try {
const command = `containerapp env list -g ${resourceGroup} --query [0].name"`;
const executionResult = await new Utility().executeAndthrowIfError(`az`, command.split(' '));
const args = [`containerapp`, `env`, `list`, `-g`, `${resourceGroup}`, `--query`, `[0].name`];
const executionResult = await new Utility().executeAndthrowIfError(`az`, args);
return !executionResult.stderr ? executionResult.stdout : null;
} catch (err) {
core.warning(err.message);
Expand All @@ -267,7 +267,7 @@ export class ContainerAppHelper {
try {
let command = `containerapp env create -n ${name} -g ${resourceGroup}`;
if (!util.isNullOrEmpty(location)) {
command += '-l' + `${location}`;
command += ' -l' + ` ${location}`;
}
await new Utility().executeAndthrowIfError(`az`, command.split(' '));
} catch (err) {
Expand Down

0 comments on commit 4b89ec8

Please sign in to comment.