From 322efa304a451d40afa2b9a66939815a763ecca3 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Tue, 10 Jan 2023 16:47:18 -0500 Subject: [PATCH] Avoid unnecessary processes in Import Mode --- salt/pcap/map.jinja | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/salt/pcap/map.jinja b/salt/pcap/map.jinja index ad23f763b..ee939a0b4 100644 --- a/salt/pcap/map.jinja +++ b/salt/pcap/map.jinja @@ -4,12 +4,8 @@ # 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 %} {% do STENOOPTIONS.update({'start': False}) %} -{% else %} - {% do STENOOPTIONS.update({'start': True}) %} -{% endif %} - -{% if ENABLED is sameas false %} {% do STENOOPTIONS.update({'status': 'absent'}) %} {% else %} + {% do STENOOPTIONS.update({'start': True}) %} {% do STENOOPTIONS.update({'status': 'running'}) %} {% endif %}