summaryrefslogtreecommitdiff
path: root/modules/nifi/core.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@ut.ee>2025-04-23 01:15:49 +0300
committerRasmus Luha <rasmus.luha@ut.ee>2025-04-23 01:15:49 +0300
commit1d41a08fe30bbb5b8a4cea7db14740109960b467 (patch)
tree389690c31478e687acf8e1294b7930d13f74822f /modules/nifi/core.py
parent003351a014acbe7f56b23806f8068502f25d8b8f (diff)
Nifi stuff WORKS!
Diffstat (limited to 'modules/nifi/core.py')
-rw-r--r--modules/nifi/core.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/nifi/core.py b/modules/nifi/core.py
index be3cc1f..24489e4 100644
--- a/modules/nifi/core.py
+++ b/modules/nifi/core.py
@@ -136,9 +136,7 @@ def modify_all_processors(data_values, schedulingPeriod, new_pipeline_name, api_
if needs_SplitJson:
## SplitJson update
split_json_path = "$"+re.sub(r'\[(.*?)\]', r'[*]', path_parts[0])
- print("Got here")
update_template(new_pipeline_path, "flowContents.processors[3].properties", "JsonPath Expression", split_json_path)
- print("Got also here")
## EvaluateJsonPath processor setup
for key, value in data_values.items() :
@@ -168,9 +166,8 @@ def modify_all_processors(data_values, schedulingPeriod, new_pipeline_name, api_
## Add api credentials
if api_username != "placeholder":
- update_template(new_pipeline_path, "flowContents.processors[1]", "Request Username", api_username)
- #update_template(new_pipeline_path, "flowContents.processors[1]", "Request Password", api_password)
- #update_template(new_pipeline_path, "flowContents.processors[1]", "Request Password", base64.b64encode(api_password.encode()).decode())
+ update_template(new_pipeline_path, "flowContents.processors[1].properties", "Request Username", api_username)
+ update_template(new_pipeline_path, "flowContents.processors[1].properties", "Request Password", api_password)