Reply
New Contributor
Posts: 1
Registered: ‎08-07-2017

update service configuration using python api with a string that have a line break

[ Edited ]

I am trying to using python api to update cloudera cm service config 

{alertpublisher_safety_valve:mail.subject.prefix=[CDH] Alert CFS cluster\r\nmail.subject.maxLength=500}

Update is successful, but in Cloudera Manager console GUI, \r\n is displayed, not as line break. If I replace \r\n with line break via console GUI, and then use rest api to retrive the value, I got following result:

{
"name" : "alertpublisher_safety_valve",
"value" : "mail.subject.prefix=[CDH] Alert CPS Cluster\r\nmail.subject.maxLength=500",
"sensitive" : false
}

Is this a bug? How to work around this? Thanks

Announcements