diff --git a/salt/curator/disabled.sls b/salt/curator/disabled.sls index df0274766..07346aa02 100644 --- a/salt/curator/disabled.sls +++ b/salt/curator/disabled.sls @@ -27,6 +27,8 @@ delete_curator_configuration: - recurse: True {% set files = salt.file.find(path='/usr/sbin', name='so-curator*') %} +{% if files|length > 0 %} delete_curator_scripts: file.absent: - names: {{files|yaml}} +{% endif %} \ No newline at end of file