Commit 36d95936255ad119fd3357001514085a198dacdd
fix bad port default
error ``` salt.butt.nz: Data failed to compile: ---------- Rendering SLS 'base:hub' failed: Jinja variable 'dict object' has no attribute 'port' ``` http://www.tmartin.io/articles/2014/salt-improving-jinja-usage/Michael Williams committed on 12/25/2017, 10:59:34 AM
Parent: 1b0f88ad0dc819e99e066fb621372dabff4ab28f
Files changed
salt/state/hub.sls | changed |
salt/state/hub.sls | ||
---|---|---|
@@ -19,9 +19,9 @@ | ||
19 | 19 … | |
20 | 20 … | {% for pub in pubs %} |
21 | 21 … | |
22 | 22 … | {% set name = pub.name %} |
23 | -{% set port = pub.port or 8008 %} | |
23 … | +{% set port = pub.get('port', 8008) %} | |
24 | 24 … | |
25 | 25 … | {% set secret = pub.secret %} |
26 | 26 … | {% set curve = secret.curve %} |
27 | 27 … | {% set public = secret.public %} |
Built with git-ssb-web