def _CreateAuditEvent(self, event_action):
    try:
      flow_name = self.flow_obj.args.flow_runner_args.flow_name
    except __HOLE__:
      flow_name = ""

    event = flow.AuditEvent(user=self.flow_obj.token.username,
                            action=event_action, urn=self.flow_obj.urn,
                            flow_name=flow_name,
                            description=self.args.description)
    flow.Events.PublishEvent("Audit", event, token=self.flow_obj.token)
dataset/ETHPy150Open google/grr/grr/lib/hunts/implementation.py/HuntRunner._CreateAuditEvent