From 0b562f92c22cd0ca34eb722e6bbb8ddbcdf230b1 Mon Sep 17 00:00:00 2001 From: Richard Clark Date: Fri, 24 Sep 2021 11:41:55 -0700 Subject: [PATCH] fix(update): allow for empty pillar without state fail --- cert/deployed/files.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cert/deployed/files.sls b/cert/deployed/files.sls index 65b4b95..1de3f54 100644 --- a/cert/deployed/files.sls +++ b/cert/deployed/files.sls @@ -9,6 +9,12 @@ # Deploy certificates # Place all files in a files_roots/cert, e.g. /srv/salt/files/cert/ + +# Added so this state has some body if no certs present +# Needed so that the cert/updated/system.sls onchanges passes +cert_empty_nop: + test.nop + {% for name, data in mapdata.get('certlist', {}).items() %} {% set cert = data.get('cert', False) %}