Make Not and NotIn namedtuples

This commit is contained in:
Paul Hooijenga
2017-10-27 13:30:36 +02:00
parent bc9344bb40
commit a0a8fc15ff
3 changed files with 7 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ CONFIG_REPO_DICT = schema.Map(
schema.Conditional(
'sha', schema.check_string,
condition_key='repo',
condition_value=schema.NotIn((_LOCAL_SENTINEL, _META_SENTINEL)),
condition_value=schema.NotIn(_LOCAL_SENTINEL, _META_SENTINEL),
ensure_absent=True,
),
)