[globals] Fix handling of string booleans in yaml (#14447)

This commit is contained in:
Jesse Hills
2026-03-04 11:54:40 +13:00
committed by GitHub
parent ee78d7a0c0
commit 989330d6bc
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -27,3 +27,14 @@ globals:
type: bool
restore_value: false
initial_value: "false"
# Test restore_value with string "false" - should be converted to bool false
- id: glob_no_restore_string_false
type: int
restore_value: "false"
initial_value: "42"
# Test restore_value with string "true" - should be converted to bool true
- id: glob_restore_string_true
type: int
restore_value: "true"
initial_value: "99"
update_interval: 5s