Add quotes around policy name and rule
Policy name or rule may contain specific
symbols which can lead to sls rendering failure.
PROD-34318
Change-Id: I3cea1a51fdbed6785fd377a598145c2f497ba743
diff --git a/heat/server.sls b/heat/server.sls
index 6d66abf..13e882c 100644
--- a/heat/server.sls
+++ b/heat/server.sls
@@ -129,8 +129,8 @@
heat_keystone_rule_{{ name }}_present:
keystone_policy.rule_present:
- path: /etc/heat/{{ server.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
- - rule: {{ rule }}
+ - name: '{{ name }}'
+ - rule: '{{ rule }}'
- require:
- pkg: heat_server_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}
@@ -142,7 +142,7 @@
heat_keystone_rule_{{ name }}_absent:
keystone_policy.rule_absent:
- path: /etc/heat/{{ server.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
+ - name: '{{ name }}'
- require:
- pkg: heat_server_packages
{%- if server.version not in ["juno", "kilo", "liberty", "mitaka", "newton", "ocata"] %}