mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-20 23:47:56 +00:00
Fix get function functionality
To meet the documentation fix the `get` function to return the value of the `default` parameter if an inactive setting is handled. Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
@@ -90,7 +90,7 @@ class Config:
|
|||||||
|
|
||||||
If a #define for name is present but commented out, return default.
|
If a #define for name is present but commented out, return default.
|
||||||
"""
|
"""
|
||||||
if name in self.settings:
|
if name in self:
|
||||||
return self.settings[name].value
|
return self.settings[name].value
|
||||||
else:
|
else:
|
||||||
return default
|
return default
|
||||||
|
|||||||
Reference in New Issue
Block a user