[hostcfgd] Missing comment added (#9113)
Missing comment change which is supposed to arrive with #8861 is added here Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
This commit is contained in:
parent
3f8821cc4b
commit
05b6207849
@ -46,7 +46,7 @@ DEFAULT_SELECT_TIMEOUT = 1000
|
|||||||
|
|
||||||
|
|
||||||
def safe_eval(val, default_value=False):
|
def safe_eval(val, default_value=False):
|
||||||
""" Safely evaluate the boolean expression, without raising an exception """
|
""" Safely evaluate the expression, without raising an exception """
|
||||||
try:
|
try:
|
||||||
ret = ast.literal_eval(val)
|
ret = ast.literal_eval(val)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Reference in New Issue
Block a user