Skip to content

Commit

Permalink
fix: corrected run telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Sep 16, 2023
1 parent 0fb48c0 commit f200d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def run(fname: str, outputs=False):
if outputs:
testing = "--once"
cmd = ["telegraf", testing, "--config", os.path.join(main_dir, f"{fname}.conf")]
x = subprocess.run([cmd], capture_output=True)
x = subprocess.run(cmd, capture_output=True)
return "{}\n<b>{}</b>{}".format(
cmd, x.stderr.decode("utf-8"), x.stdout.decode("utf-8")
)

0 comments on commit f200d15

Please sign in to comment.