Skip to content

do not omit "empty" booleans in yaml output#2317

Merged
simonpasquier merged 1 commit into
prometheus:masterfrom
0robustus1:do-not-omit-booleans-in-yaml
Jul 24, 2020
Merged

do not omit "empty" booleans in yaml output#2317
simonpasquier merged 1 commit into
prometheus:masterfrom
0robustus1:do-not-omit-booleans-in-yaml

Conversation

@0robustus1
Copy link
Copy Markdown
Contributor

The "empty" boolean is the false value. This means that values of false will not
be present in the YAML output. As such they won't be displayed in the config
section on the Status overview page (/#/status), which can be especially
confusing for the SMTPRequireTLS (smtp_require_tls) field of the configuration
as this one will default to true.

The "empty" boolean is the false value. This means that values of false will not
be present in the YAML output. As such they won't be displayed in the config
section on the Status overview page (/#/status), which can be especially
confusing for the SMTPRequireTLS (smtp_require_tls) field of the configuration
as this one will default to true.

Signed-off-by: Tim Reddehase <tim.reddehase@new-work.se>
@0robustus1 0robustus1 force-pushed the do-not-omit-booleans-in-yaml branch from 319b967 to 560fb8c Compare July 6, 2020 08:38
@simonpasquier simonpasquier merged commit 7a4db5c into prometheus:master Jul 24, 2020
@simonpasquier
Copy link
Copy Markdown
Member

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants