From 0b6b6e38fc7d6be68a7ff8ef62ebe77d630d8c89 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 22 Oct 2020 11:24:18 -0400 Subject: [PATCH] fix map for steno --- salt/pcap/map.jinja | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/salt/pcap/map.jinja b/salt/pcap/map.jinja index 8f8608ce5..b3c746bcc 100644 --- a/salt/pcap/map.jinja +++ b/salt/pcap/map.jinja @@ -1,15 +1,15 @@ -{% set PCAPOPTIONS = {} %} +{% set STENOOPTIONS = {} %} {% set ENABLED = salt['pillar.get']('steno:enabled', 'True') %} # don't start the docker container if it is an import node or disabled via pillar {% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %} - {% set PCAPOPTIONS['start'] = False %} + {% do STENOOPTIONS.update({'start': False}) %} {% else %} - {% set PCAPOPTIONS['start'] = True %} + {% do STENOOPTIONS.update({'start': True}) %} {% endif %} {% if ENABLED is sameas false %} - {% set PCAPOPTIONS['status'] = 'stopped' %} + {% do STENOOPTIONS.update({'status': 'stopped'}) %} {% else %} - {% set PCAPOPTIONS['status'] = 'running' %} + {% do STENOOPTIONS.update({'status': 'running'}) %} {% endif %} \ No newline at end of file