add tests
This commit is contained in:
@@ -28,6 +28,9 @@ sub run {
|
||||
$job->device( get_device($job->device) );
|
||||
Module::Load::load 'App::Netdisco::Worker' => $job->action;
|
||||
|
||||
# finalise job status when we exit
|
||||
my $statusguard = guard { $job->finalise_status };
|
||||
|
||||
my @newuserconf = ();
|
||||
my @userconf = @{ setting('device_auth') || [] };
|
||||
|
||||
@@ -52,9 +55,6 @@ sub run {
|
||||
my $configguard = guard { set(device_auth => \@userconf) };
|
||||
set(device_auth => \@newuserconf);
|
||||
|
||||
# finalise job status when we exit
|
||||
my $statusguard = guard { $job->finalise_status };
|
||||
|
||||
# run check phase and if there are workers then one MUST be successful
|
||||
$self->run_workers('nd2_core_check');
|
||||
return if not $job->check_passed;
|
||||
|
||||
Reference in New Issue
Block a user