If one PBA fails it shouldn't stop all the rest.
This commit is contained in:
parent
731e3acb90
commit
e9cd20a345
|
@ -25,8 +25,11 @@ class PostBreach(object):
|
||||||
Executes all post breach actions.
|
Executes all post breach actions.
|
||||||
"""
|
"""
|
||||||
for pba in self.pba_list:
|
for pba in self.pba_list:
|
||||||
|
try:
|
||||||
LOG.debug("Executing PBA: '{}'".format(pba.name))
|
LOG.debug("Executing PBA: '{}'".format(pba.name))
|
||||||
pba.run()
|
pba.run()
|
||||||
|
except Exception as e:
|
||||||
|
LOG.error("PBA {} failed. Error info: {}".format(pba.name, e))
|
||||||
LOG.info("All PBAs executed. Total {} executed.".format(len(self.pba_list)))
|
LOG.info("All PBAs executed. Total {} executed.".format(len(self.pba_list)))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue