allow deferrable_actions exceptions to device deferrals

This commit is contained in:
Oliver Gorwits
2023-08-12 19:51:05 +01:00
parent a78870c49f
commit bb15abce58
5 changed files with 18 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ register_worker({ phase => 'check' }, sub {
return Status->error('Missing device (-d).')
unless defined shift->device;
return Status->info("snapshot skipped: please run a loadmibs job first")
return Status->defer("snapshot skipped: please run a loadmibs job first")
unless schema('netdisco')->resultset('SNMPObject')->count();
return Status->done('Snapshot is able to run');