def check(self, tags):
        if not self.ands:
            return True

        element_tags = set(tags)

        def test_tag(xtag):
            if xtag.startswith('-'): # -- or xtag.startswith('~'):
                return xtag[1:] not in element_tags
            return xtag in element_tags

        # -- EVALUATE: (or_expr1) and (or_expr2) and ...
        return all(any(test_tag(xtag) for xtag in ors)  for ors in self.ands)
Create an HTTP health check configuration.
dataset/ETHPy150Open behave/behave/behave/tag_expression.py/TagExpression.check--crossover with--dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/gce.py/create_hc