-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: InsightsClient: fix handling of bool+string config keys
Apparently there are configuration keys that may allow both boolean and string values, and "cert_verify" is a notable one. To handle this properly, add a new category of keys, and tweak the reading of keys to fallback with a string-based get() in case the (likely from getboolean()) reading fails with ValueError. Add a couple of tests to verify that the right types are properly handled. Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters