From: cah Date: Thu, 17 Feb 2022 23:02:04 +0000 (+0100) Subject: Little cleanup. X-Git-Url: https://git.carlh.net/gitweb/?p=cdist.git;a=commitdiff_plain;h=b32b040544df8a84b89eb351764a456ed4884c15 Little cleanup. --- 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):