conditional#
- eclypse.policies.compose.conditional(predicate, policy)[source]#
Run
policyonly whenpredicate(graph)is true.- Parameters:
predicate (Callable[[AssetGraph], bool]) – Callable receiving the graph and returning a truthy value.
policy (UpdatePolicy) – Wrapped policy to call when
predicatepasses.
- Returns:
Conditional policy.
- Return type: