Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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

New Contributor

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