Convert refresh fact to strings

While the use of "to_json" resulted in a string it also created a JSON
escaped a string full of slashes which then corrupts kibana index patterns.

Change-Id: I2c26ab9dd4930226f3e554c2f9bed5e382cdafa5
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-09-24 21:50:41 -05:00
parent 0e4dc162b4
commit dfc919bb0e
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@
set_fact:
index_refresh_fact:
attributes:
fieldFormatMap: "{{ attributes['fieldFormatMap'] | to_json }}"
fieldFormatMap: "{{ attributes['fieldFormatMap'] | string }}"
timeFieldName: "{{ attributes['timeFieldName'] }}"
title: "{{ attributes['title'] }}"
fields: "{{ index_fields_format_return['content'] | to_json }}"
fields: "{{ index_fields_format_return['content'] | string }}"
- name: Put index fields
uri: