Implement Hooks per #726

This commit is contained in:
Oliver Gorwits
2020-11-28 14:45:56 +00:00
parent 225f9824b2
commit 669eec46db
11 changed files with 177 additions and 6 deletions

View File

@@ -270,6 +270,7 @@ sub jq_complete {
log => $job->log,
started => $job->started,
finished => $job->finished,
(($job->action eq 'hook') ? (subaction => undef) : ()),
});
});
$happy = true;
@@ -284,6 +285,7 @@ sub jq_complete {
sub jq_log {
return schema('netdisco')->resultset('Admin')->search({
{ 'me.action' => { '-not_like' => 'hook::%' } },
-or => [
{ 'me.log' => undef },
{ 'me.log' => { '-not_like' => 'duplicate of %' } },