introduce noop and refactor checks in all workers
This commit is contained in:
@@ -13,7 +13,7 @@ register_worker({ stage => 'check' }, sub {
|
||||
return Status->error('arpnip failed: unable to interpret device param')
|
||||
unless defined $device;
|
||||
|
||||
return Status->done("arpnip skipped: $device not yet discovered")
|
||||
return Status->error("arpnip skipped: $device not yet discovered")
|
||||
unless $device->in_storage;
|
||||
|
||||
return Status->defer("arpnip skipped: $device is pseudo-device")
|
||||
@@ -25,7 +25,7 @@ register_worker({ stage => 'check' }, sub {
|
||||
return Status->defer("arpnip deferred: $device is not arpnipable")
|
||||
unless is_arpnipable_now($device);
|
||||
|
||||
return Status->done('Arpnip is able to run.');
|
||||
return Status->done('Arpnip is able to run');
|
||||
});
|
||||
|
||||
true;
|
||||
|
||||
Reference in New Issue
Block a user