Skip to content

Commit f5926ad

Browse files
Simplify printed output
1 parent b02b2de commit f5926ad

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67493,11 +67493,11 @@ async function deprovisionEnvironment(context) {
6749367493
};
6749467494
})));
6749567495
if (deprovisioningRuns.length > 0) {
67496-
client.info(`Rubook runs:`);
67497-
deprovisioningRuns.forEach(run => {
67498-
client.info(` runbookRunId: ${run.RunbookRunId}, serverTaskId: ${run.TaskId}`);
67499-
});
67500-
client.info(`Check the status of all deprovisioning runbook runs to confirm that deprovisioning has completed successfully.`);
67496+
client.info([
67497+
`Rubook runs:`,
67498+
...deprovisioningRuns.map(run => ` runbookRunId: ${run.RunbookRunId}, serverTaskId: ${run.TaskId}`),
67499+
`Check the status of all deprovisioning runbook runs to confirm that deprovisioning has completed successfully.`
67500+
].join('\n'));
6750167501
}
6750267502
else {
6750367503
client.info('No deprovisioning runbook runs were started. Deprovisioning completed successfully.');

src/deprovisionEnvironment.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export async function deprovisionEnvironment(context: ActionContext): Promise<vo
2828
);
2929

3030
if (deprovisioningRuns.length > 0) {
31-
client.info(`Rubook runs:`);
32-
deprovisioningRuns.forEach(run => {
33-
client.info(` runbookRunId: ${run.RunbookRunId}, serverTaskId: ${run.TaskId}`);
34-
});
35-
client.info(`Check the status of all deprovisioning runbook runs to confirm that deprovisioning has completed successfully.`);
31+
client.info([
32+
`Rubook runs:`,
33+
...deprovisioningRuns.map(run => ` runbookRunId: ${run.RunbookRunId}, serverTaskId: ${run.TaskId}`),
34+
`Check the status of all deprovisioning runbook runs to confirm that deprovisioning has completed successfully.`
35+
].join('\n'));
3636
} else {
3737
client.info('No deprovisioning runbook runs were started. Deprovisioning completed successfully.');
3838
}

0 commit comments

Comments
 (0)