From 9a332ab302a2f05ce4924a66647dec03fb3b1366 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Sat, 10 May 2025 12:24:38 +0300 Subject: cosmetic fixes --- modules/telegraf/core.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'modules') 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'.") -- cgit v1.2.3