fix if statement

This commit is contained in:
m0duspwnens
2020-10-22 10:59:03 -04:00
parent 172ca9aa8d
commit aa59eff1ac

View File

@@ -2,7 +2,7 @@
{% set ENABLED = salt['pillar.get']('steno:enabled', 'True') %} {% set ENABLED = salt['pillar.get']('steno:enabled', 'True') %}
# don't start the docker container if it is an import node or disabled via pillar # don't start the docker container if it is an import node or disabled via pillar
{% if grains.id.split('_')|last == 'import' || ENABLED is sameas false %} {% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %}
{% set PCAPOPTIONS['start'] = False %} {% set PCAPOPTIONS['start'] = False %}
{% else %} {% else %}
{% set PCAPOPTIONS['start'] = True %} {% set PCAPOPTIONS['start'] = True %}