[ML] Remove extra quotes in field config
Original commit: elastic/x-pack-elasticsearch@d9a7ca5ebf
This commit is contained in:
parent
a386b5727e
commit
999c1dab48
|
@ -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)
|
||||
|
|
|
@ -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" +
|
||||
|
|
Loading…
Reference in New Issue