From 3cd1b5687e9bdd4b701156b50c0f80edef1fade2 Mon Sep 17 00:00:00 2001 From: weslambert Date: Fri, 12 Nov 2021 12:06:39 -0500 Subject: [PATCH] Make pivot condition independent for ENDGAMEHOST --- salt/soc/files/soc/menu.actions.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/salt/soc/files/soc/menu.actions.json b/salt/soc/files/soc/menu.actions.json index 0c144c3cb..b088780f8 100644 --- a/salt/soc/files/soc/menu.actions.json +++ b/salt/soc/files/soc/menu.actions.json @@ -1,4 +1,4 @@ -{% set HIGHLANDER = salt['pillar.get']('global:highlander', False) %} +{%- set ENDGAMEHOST = salt['pillar.get']('soc:endgamehost', False) %} [ { "name": "actionHunt", "description": "actionHuntHelp", "icon": "fa-crosshairs", "target": "", "links": [ @@ -31,11 +31,10 @@ "links": [ "https://www.virustotal.com/gui/search/{value}" ]} - {%- if HIGHLANDER %} - {%- set EGHOST = salt['pillar.get']('soc:endgamehost', 'EGHOSTNOTPOPULATED') %} + {%- if ENDGAMEGHOST %} ,{ "name": "Endgame", "description": "Endgame Endpoint Investigation and Response", "icon": "fa-external-link-alt", "target": "_blank", "links": [ - "https://{{ EGHOST }}/endpoints/{:agent.id}" + "https://{{ ENDGAMEHOST }}/endpoints/{:agent.id}" ]} {% endif %} ]