Browse Source

fix(apt_conf): pass context variables to the template as JSON object

Previously when passing the apt_conf context variable to the template
the variables would not necessarily retain their correct type. An
example of this would be when using a pillar value of `null` it would be
passed to the template as the string `"None"` instead of type `None`.

If we pass the apt_conf context variables to the template using a json
object the variables retain their correct types.
pull/68/head
John Kristensen 4 years ago
parent
commit
d553e46176
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apt/apt_conf.sls

+ 1
- 1
apt/apt_conf.sls View File

@@ -32,7 +32,7 @@
- group: root
- mode: 644
- context:
data: {{ contents }}
data: {{ contents|json }}
- require_in:
- file: {{ confd_dir }}
{% endfor %}

Loading…
Cancel
Save