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: Ia2edafe9bf84670f39683d91a5548aafbedce003
diff --git a/nova/controller.sls b/nova/controller.sls
index 7654536..a25c1d6 100644
--- a/nova/controller.sls
+++ b/nova/controller.sls
@@ -312,8 +312,8 @@
nova_keystone_rule_{{ name }}_present:
keystone_policy.rule_present:
- path: /etc/nova/{{ controller.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
- - rule: {{ rule }}
+ - name: '{{ name }}'
+ - rule: '{{ rule }}'
- require:
- pkg: nova_controller_packages
{%- if controller.version not in ['liberty', 'mitaka', 'newton'] %}
@@ -325,7 +325,7 @@
nova_keystone_rule_{{ name }}_absent:
keystone_policy.rule_absent:
- path: /etc/nova/{{ controller.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
+ - name: '{{ name }}'
- require:
- pkg: nova_controller_packages
{%- if controller.version not in ['liberty', 'mitaka', 'newton'] %}