Skip to content

Commit fcf85aa

Browse files
Update index.js
1 parent dbdb754 commit fcf85aa

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

azurecontainerapps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ export class azurecontainerapps {
636636
// If the target label is provided, add it to the command line arguments
637637
this.commandLineArgs.push(`--revisions-mode Labels`, `--target-label ${this.targetLabel}`);
638638
}
639-
640639
}
641640

642641
/**

dist/index.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ var azurecontainerapps = /** @class */ (function () {
645645
* file is not provided.
646646
*/
647647
azurecontainerapps.setupContainerAppProperties = function () {
648-
this.toolHelper.writeInfo("Setting up Container App properties...");
648+
this.toolHelper.writeDebug("Setting up Container App properties...");
649649
this.commandLineArgs = [];
650650
// Get the ingress inputs
651651
this.ingress = this.toolHelper.getInput('ingress', false);
@@ -665,10 +665,7 @@ var azurecontainerapps = /** @class */ (function () {
665665
if (!this.util.isNullOrEmpty(this.targetLabel)) {
666666
this.toolHelper.writeDebug('Target label is provided. Setting up command line arguments for revisions mode "Labels".');
667667
// If the target label is provided, add it to the command line arguments
668-
this.commandLineArgs.push("--revisions-mode Labels");
669-
this.toolHelper.writeDebug('Added "--revisions-mode Labels" to command line arguments.');
670-
this.commandLineArgs.push("--target-label ".concat(this.targetLabel));
671-
this.toolHelper.writeDebug("Added \"--target-label ".concat(this.targetLabel, "\" to command line arguments."));
668+
this.commandLineArgs.push("--revisions-mode Labels", "--target-label ".concat(this.targetLabel));
672669
}
673670
// Determine default values only for the 'create' scenario to avoid overriding existing values for the 'update' scenario
674671
if (!this.containerAppExists) {
@@ -720,8 +717,7 @@ var azurecontainerapps = /** @class */ (function () {
720717
}
721718
else if (!this.util.isNullOrEmpty(this.targetLabel)) {
722719
// If the target label is provided, add it to the command line arguments
723-
this.commandLineArgs.push("--revisions-mode Labels");
724-
this.commandLineArgs.push("--target-label ".concat(this.targetLabel));
720+
this.commandLineArgs.push("--revisions-mode Labels", "--target-label ".concat(this.targetLabel));
725721
}
726722
};
727723
/**
@@ -4841,15 +4837,12 @@ var ContainerAppHelper = /** @class */ (function () {
48414837
case 1:
48424838
_a.trys.push([1, 3, , 4]);
48434839
command_1 = "az containerapp create -n ".concat(containerAppName, " -g ").concat(resourceGroup, " --environment ").concat(environment, " --output none");
4844-
toolHelper.writeInfo("Base command initialized: ".concat(command_1));
48454840
optionalCmdArgs.forEach(function (val) {
48464841
command_1 += " ".concat(val);
48474842
});
4848-
toolHelper.writeInfo("Final command with optional arguments: ".concat(command_1));
48494843
return [4 /*yield*/, util.execute(command_1)];
48504844
case 2:
48514845
_a.sent();
4852-
toolHelper.writeInfo("Container App \"".concat(containerAppName, "\" created successfully."));
48534846
return [3 /*break*/, 4];
48544847
case 3:
48554848
err_1 = _a.sent();
@@ -4934,7 +4927,6 @@ var ContainerAppHelper = /** @class */ (function () {
49344927
return __generator(this, function (_a) {
49354928
switch (_a.label) {
49364929
case 0:
4937-
toolHelper.writeInfo("Attempting to create Container App with name \"".concat(containerAppName, "\" in resource group \"").concat(resourceGroup, "\" from provided YAML \"").concat(yamlConfigPath, "\""));
49384930
toolHelper.writeDebug("Attempting to create Container App with name \"".concat(containerAppName, "\" in resource group \"").concat(resourceGroup, "\" from provided YAML \"").concat(yamlConfigPath, "\""));
49394931
_a.label = 1;
49404932
case 1:

0 commit comments

Comments
 (0)