Change CheckVarAction default to be != False instead of == True

Like most programs, we like a value to be "not false" instead of
"truthy".

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2021-11-21 11:47:28 -08:00
parent 1aa1f861ee
commit 32e8c219a6

View File

@@ -319,8 +319,8 @@ class CheckVarAction(Action):
def __init__(
self,
var_id: str,
compare: Compare = Compare.EQUALS,
against: Any = True,
compare: Compare = Compare.NOT_EQUALS,
against: Any = False,
yes: Union[Action, Sequence[Action]] = [],
no: Union[Action, Sequence[Action]] = [],
):