Files
netdisco/xt/lib/App/NetdiscoX/Worker/Plugin/TestTwo.pm
2017-11-12 00:14:21 +00:00

18 lines
483 B
Perl
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package App::NetdiscoX::Worker::Plugin::TestTwo;
use Dancer ':syntax';
use App::Netdisco::Worker::Plugin;
use aliased 'App::Netdisco::Worker::Status';
# info 'test: lower priority driver not run if higher is successful';
register_worker({ phase => 'main', driver => 'snmp' }, sub {
return Status->done('NOT OK: SNMP driver should NOT be run.');
});
register_worker({ phase => 'main', driver => 'cli' }, sub {
return Status->done('OK: CLI driver is successful.');
});
true;