[ML] Remove extra quotes in field config

Original commit: elastic/x-pack-elasticsearch@d9a7ca5ebf
This commit is contained in:
David Kyle 2018-01-11 15:57:17 +00:00
parent a386b5727e
commit 999c1dab48
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ public class FieldConfigWriter {
contents.append(SCHEDULED_EVENT_PREFIX).append(eventIndex)
.append(SCHEDULED_EVENT_DESCRIPTION_SUFFIX).append(EQUALS)
.append(quoteField(event.getDescription()))
.append(event.getDescription())
.append(NEW_LINE);
contents.append(SCHEDULED_EVENT_PREFIX).append(eventIndex)

View File

@ -253,7 +253,7 @@ public class FieldConfigWriterTests extends ESTestCase {
createFieldConfigWriter().write();
verify(writer).write("detector.0.clause = count\n" +
"scheduledevent.0.description = \"The Ashes\"\n" +
"scheduledevent.0.description = The Ashes\n" +
"scheduledevent.0.rules = [{\"actions\":[\"filter_results\",\"skip_sampling\"],\"conditions_connective\":\"and\"," +
"\"conditions\":[{\"type\":\"time\",\"condition\":{\"operator\":\"gte\",\"value\":\"1511395200\"}}," +
"{\"type\":\"time\",\"condition\":{\"operator\":\"lt\",\"value\":\"1515369600\"}}]}]\n" +