diff options
author | Rasmus Luha <rasmus.luha@ut.ee> | 2025-05-11 16:23:04 +0300 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@ut.ee> | 2025-05-11 16:23:04 +0300 |
commit | 6fa0609ca3a505fbbe6528d6da9928f7847d0078 (patch) | |
tree | 44a0c8b687da37860ff848bf9a7e9057bde97463 /modules/nifi/nifi_utils.py | |
parent | 137b8a988f77e957feed698494f7143ac06a7b51 (diff) |
supress nifi pipeline upload warnings from stdout
Diffstat (limited to 'modules/nifi/nifi_utils.py')
-rw-r--r-- | modules/nifi/nifi_utils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/nifi/nifi_utils.py b/modules/nifi/nifi_utils.py index 1871940..6028003 100644 --- a/modules/nifi/nifi_utils.py +++ b/modules/nifi/nifi_utils.py @@ -3,7 +3,9 @@ import config import requests import sys import json +import urllib3 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def update_template(file_path, dot_path, new_key, new_value): @@ -25,12 +27,12 @@ def update_template(file_path, dot_path, new_key, new_value): # Step 4: Add or update the key current[new_key] = new_value - print(f"🛠Added '{new_key}': '{new_value}' at path '{dot_path}'") + #print(f"🛠Added '{new_key}': '{new_value}' at path '{dot_path}'") # Step 5: Save back the JSON with open(file_path, "w") as f: json.dump(data, f, indent=2) - print("✅ Changes saved.") + #print("✅ Changes saved.") def set_database_credentials(file_path,dot_path): ## Update URL @@ -87,4 +89,4 @@ def upload_nifi_pipeline(token, pipeline_path, processorGroup_name, username=con ) upload_resp.raise_for_status() - print(f"✅ Uploaded process group '{processorGroup_name}' successfully!") + print(f"✅ Andmekonveier '{processorGroup_name}' on edukalt ka Nifi platvormile paigaldatud!") |