From 7ca12d7d1d19673996110b26518b4b3e125f5b94 Mon Sep 17 00:00:00 2001 From: Daniel Grittner Date: Mon, 11 Nov 2024 20:57:14 +0100 Subject: [PATCH] fix: kandji_alert_for_unencrypted_devices workflow --- .../workflows/kandji_unencrypted_devices2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/access_review/workflows/kandji_unencrypted_devices2.py b/examples/access_review/workflows/kandji_unencrypted_devices2.py index d3a1ab5d..4883b21d 100644 --- a/examples/access_review/workflows/kandji_unencrypted_devices2.py +++ b/examples/access_review/workflows/kandji_unencrypted_devices2.py @@ -1,6 +1,6 @@ """ -admyral workflow push kandji_alert_for_unencrypted_devices -f workflows/kandji_unencrypted_devices2.py +admyral workflow push kandji_alert_for_unencrypted_devices -f workflows/kandji_unencrypted_devices2.py --activate """ @@ -25,16 +25,16 @@ def kandji_alert_for_unencrypted_devices(payload: dict[str, JsonValue]): ) selected_fields = select_fields_from_objects_in_list( - objects=unencrypted_devices, + input_list=unencrypted_devices, fields=["device_name", "device_id"], ) formatted_string = format_json_to_list_view_string( - objects=selected_fields, + json_value=selected_fields, ) send_slack_message_to_user_by_email( email="test@test.com", - text=formatted_string, + text=f"🚨 Unencrypted devices detected 🚨:\n\n{formatted_string}", secrets={"SLACK_SECRET": "slack_secret"}, )