Handle no credentials
Currently, if you supply an empty username and password for rundeck,
"None" gets placed instead. This makes sure that the field is empty
so that autologin doesn't happen.
Change-Id: I072a129ced39cc7046b8fd7ae5f4451240094954
diff --git a/devops_portal/files/config.json b/devops_portal/files/config.json
index 5447f65..72ce97b 100644
--- a/devops_portal/files/config.json
+++ b/devops_portal/files/config.json
@@ -6,7 +6,9 @@
"credentials": {
{%- for key, value in salt['devops_utils.iter_items'](keys, parameters) %}
{%- if not loop.first %},{% endif %}
- "{{ key }}": "{{ value }}"
+ {%- if value != None %}
+ "{{ key }}": "{{ value }}"{% else %}
+ "{{ key }}": ""{%- endif %}
{%- endfor %}
}
{%- endmacro %}