diff options
author | Rasmus Luha <rasmus.luha@ut.ee> | 2025-05-10 12:24:38 +0300 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@ut.ee> | 2025-05-10 12:24:38 +0300 |
commit | 9a332ab302a2f05ce4924a66647dec03fb3b1366 (patch) | |
tree | 52aac7195c19e3a7326f7e64e9cd3a5cd14b0205 | |
parent | 3c58b8e8f6f888473b37b91cc604b22647bec686 (diff) |
cosmetic fixes
-rw-r--r-- | modules/telegraf/core.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/telegraf/core.py b/modules/telegraf/core.py index 347bdba..64fe893 100644 --- a/modules/telegraf/core.py +++ b/modules/telegraf/core.py @@ -37,6 +37,7 @@ def modify_template(new_pipeline_path, api_url, schedulingPeriod, data_values, m fields=[] json_query = "" + if template_name == "basic_ETL.toml": for key, value in data_values.items(): @@ -77,9 +78,7 @@ def modify_template(new_pipeline_path, api_url, schedulingPeriod, data_values, m ## If authenctication needed if api_username and api_username.lower() != "placeholder": - print("Added username ") telegraf_utils.modify_input(new_pipeline_path,"username", api_username) - print("Added password") telegraf_utils.modify_input(new_pipeline_path,"password", api_password) @@ -122,9 +121,4 @@ def build_pipeline(): modify_template(new_pipeline_path, api_url, schedulingPeriod, data_values, measurement_name, api_username, api_password, template_name) - - - - - print("end currently") - #print(f"✅✅✅ Valmis. Uus genereeritud andmekoveier nimega '{new_pipeline_name}' asub kaustas 'pipelines'.") + print(f"✅✅✅ Valmis. Uus genereeritud andmekoveier nimega '{new_pipeline_name}' asub kaustas 'pipelines'.") |