mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
move condition to avoid wrong notic about schedule not set in pillar
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{% if salt['pillar.get']('patch:os:schedule_name') and salt['service.status']('salt-minion', True) %}
|
{% if salt['pillar.get']('patch:os:schedule_name') %}
|
||||||
|
{% if salt['service.status']('salt-minion', True) %}
|
||||||
{% set patch_os_pillar = salt['pillar.get']('patch:os') %}
|
{% set patch_os_pillar = salt['pillar.get']('patch:os') %}
|
||||||
{% set schedule_name = patch_os_pillar.schedule_name %}
|
{% set schedule_name = patch_os_pillar.schedule_name %}
|
||||||
{% set splay = patch_os_pillar.get('splay', 300) %}
|
{% set splay = patch_os_pillar.get('splay', 300) %}
|
||||||
@@ -62,6 +63,7 @@ remove_patch_os_schedule:
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
no_patch_os_schedule_name_set:
|
no_patch_os_schedule_name_set:
|
||||||
|
|||||||
Reference in New Issue
Block a user