change noop to info, and some fixes

This commit is contained in:
Oliver Gorwits
2017-11-25 12:29:08 +00:00
parent de594c647f
commit 26b4bdb907
16 changed files with 54 additions and 58 deletions

View File

@@ -51,7 +51,7 @@ register 'register_worker' => sub {
my $no = (exists $workerconf->{no} ? $workerconf->{no} : undef);
my $only = (exists $workerconf->{only} ? $workerconf->{only} : undef);
return $job->add_status( Status->noop('worker not applicable to this device') )
return $job->add_status( Status->info('worker not applicable to this device') )
if ($no and check_acl_no($job->device, $no))
or ($only and not check_acl_only($job->device, $only));
@@ -68,7 +68,7 @@ register 'register_worker' => sub {
}
# per-device action but no device creds available
return $job->add_status( Status->noop('worker driver or action not applicable') )
return $job->add_status( Status->info('worker driver or action not applicable') )
if 0 == scalar @newuserconf;
}