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: I863953bed504f4548f3699246cf720f4f30a3401
diff --git a/octavia/api.sls b/octavia/api.sls
index 689cb7e..ddae744 100644
--- a/octavia/api.sls
+++ b/octavia/api.sls
@@ -45,8 +45,8 @@
octavia_keystone_rule_{{ name }}_present:
keystone_policy.rule_present:
- path: /etc/octavia/{{ api.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
- - rule: {{ rule }}
+ - name: '{{ name }}'
+ - rule: '{{ rule }}'
- require:
- pkg: octavia_api_packages
- file: /etc/octavia/{{ api.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
@@ -56,7 +56,7 @@
octavia_keystone_rule_{{ name }}_absent:
keystone_policy.rule_absent:
- path: /etc/octavia/{{ api.get('oslo_policy', {}).get('policy_file', 'policy.json') }}
- - name: {{ name }}
+ - name: '{{ name }}'
- require:
- pkg: octavia_api_packages
- file: /etc/octavia/{{ api.get('oslo_policy', {}).get('policy_file', 'policy.json') }}