From b32b040544df8a84b89eb351764a456ed4884c15 Mon Sep 17 00:00:00 2001 From: cah Date: Fri, 18 Feb 2022 00:02:04 +0100 Subject: [PATCH] Little cleanup. --- cdist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist b/cdist index 87db25a..6315653 100755 --- a/cdist +++ b/cdist @@ -103,7 +103,7 @@ class BoolOption(object): def offer(self, key, value): if key == self.key: - self.value = (value == 'yes' or value == '1' or value == 'true') + self.value = value in ['yes', '1', 'true'] class Config: def __init__(self): -- 2.30.2