rename init stage to check

This commit is contained in:
Oliver Gorwits
2017-09-13 10:44:31 +01:00
parent 1fdb086183
commit d5d39289d6
23 changed files with 30 additions and 30 deletions

View File

@@ -7,7 +7,7 @@ use aliased 'App::Netdisco::Worker::Status';
use NetAddr::IP qw/:rfc3021 :lower/;
use App::Netdisco::Util::Device qw/get_device renumber_device/;
register_worker({ stage => 'init' }, sub {
register_worker({ stage => 'check' }, sub {
my ($job, $workerconf) = @_;
my ($device, $port, $extra) = map {$job->$_} qw/device port extra/;
return Status->error('Missing device (-d).') if !defined $device;