We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63644a5 commit 408e171Copy full SHA for 408e171
linodecli/configuration/config.py
@@ -254,7 +254,8 @@ def plugin_get_value(
254
return value
255
256
if value_type is bool:
257
- return self.parse_boolean(value)
+ bool_value = self.parse_boolean(value)
258
+ return bool_value if bool_value is not None else default
259
260
try:
261
return cast(T, value_type(value))
@@ -691,7 +692,8 @@ def get_custom_aliases(self) -> Dict[str, str]:
691
692
693
def parse_boolean(self, value: str) -> Optional[bool]:
694
"""
- Parses a string config value into a boolean.
695
+ Parses a string config value into a boolean. Returns None if the value
696
+ cannot be parsed as a boolean.
697
698
:param value: The string value to parse.
699
:return: The parsed boolean value.
0 commit comments