MCPcopy Create free account
hub / github.com/StackStorm/st2 / enforce_rules

Method enforce_rules

st2reactor/st2reactor/rules/engine.py:99–104  ·  view source on GitHub ↗
(self, enforcers)

Source from the content-addressed store, hash-verified

97 return enforcers
98
99 def enforce_rules(self, enforcers):
100 for enforcer in enforcers:
101 try:
102 enforcer.enforce() # Should this happen in an eventlet pool?
103 except:
104 LOG.exception("Exception enforcing rule %s.", enforcer.rule)

Callers 1

Calls 1

enforceMethod · 0.80

Tested by

no test coverage detected