Skip to content

Commit

Permalink
chore: fixed incorrect use of writeFile for podman's prometheus and t…
Browse files Browse the repository at this point in the history
…empo resources
  • Loading branch information
l0r1s committed Apr 25, 2023
1 parent 8cb0b71 commit 276e810
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export class PrometheusResource {
__dirname,
"./configs/prometheus.yml",
);
await fs.writeFile(
`${this.configPath}/prometheus.yml`,
await fs.copyFile(
templateConfigPath,
`${this.configPath}/prometheus.yml`,
);
} catch {
throw new Error("Error generating config for prometheus resource");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class TempoResource {
__dirname,
`./configs/tempo.yaml`,
);
await fs.writeFile(`${this.configPath}/tempo.yaml`, templateConfigPath);
await fs.copyFile(templateConfigPath, `${this.configPath}/tempo.yaml`);
} catch {
throw new Error("Error generating config for tempo resource");
}
Expand Down

0 comments on commit 276e810

Please sign in to comment.