Skip to content

Commit

Permalink
Reorder arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Nov 12, 2023
1 parent e3831ca commit ecc3356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5003,7 +5003,7 @@ var ContainerAppHelper = /** @class */ (function () {
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
command = "az containerapp env show -n " + containerAppEnvironment + " -g " + resourceGroup + " -o none";
command = "az containerapp env show -o none -g " + resourceGroup + " -n " + containerAppEnvironment;
return [4 /*yield*/, util.execute(command)];
case 2:
executionResult = _a.sent();
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class ContainerAppHelper {
public async doesContainerAppEnvironmentExist(containerAppEnvironment: string, resourceGroup: string): Promise<boolean> {
toolHelper.writeDebug(`Attempting to determine if Container App Environment with name "${containerAppEnvironment}" exists in resource group "${resourceGroup}"`);
try {
let command = `az containerapp env show -n ${containerAppEnvironment} -g ${resourceGroup} -o none`;
let command = `az containerapp env show -o none -g ${resourceGroup} -n ${containerAppEnvironment}`;
let executionResult = await util.execute(command);
return executionResult.exitCode === 0;
} catch (err) {
Expand Down

0 comments on commit ecc3356

Please sign in to comment.