Skip to content

[MISC] Allow control chars on cluster/clusterset status output dict - #75

Open
paulomach wants to merge 1 commit into
mainfrom
misc/allow_control_chars_status_output
Open

[MISC] Allow control chars on cluster/clusterset status output dict#75
paulomach wants to merge 1 commit into
mainfrom
misc/allow_control_chars_status_output

Conversation

@paulomach

@paulomach paulomach commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

In some cases, cluster/clusterset output fields instanceErrors and applierErrors
can contain control chars, breaking the json conversion.

On the charms, this breaks hook execution with uncaught JSONDecodeError exactly when a self-healing procedure is needed.
Setting strict=False configure the JSONDecoder to ignore control characters.

On some transient cases, cluster/clusterset output fields instanceErrors and applierErrors
can contain control chars, breaking the json conversion.
@paulomach paulomach added the enhancement New feature, UI change, or workload upgrade label Jul 31, 2026

@astrojuanlu astrojuanlu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, UI change, or workload upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants