Moved do_execute method to AuditHandler class
Both Continuous and Oneshot audits made same action in do_execute, so it's a good idea to move it to the base class TrivialFix Change-Id: Ic0353f010509ce45f94126e4db0e629417128ded
This commit is contained in:
@@ -71,9 +71,8 @@ class ContinuousAuditHandler(base.AuditHandler):
|
||||
return False
|
||||
|
||||
def do_execute(self, audit, request_context):
|
||||
# execute the strategy
|
||||
solution = self.strategy_context.execute_strategy(
|
||||
audit, request_context)
|
||||
solution = super(ContinuousAuditHandler, self)\
|
||||
.do_execute(audit, request_context)
|
||||
|
||||
if audit.audit_type == objects.audit.AuditType.CONTINUOUS.value:
|
||||
a_plan_filters = {'audit_uuid': audit.uuid,
|
||||
|
||||
Reference in New Issue
Block a user