avoid tags worker if device not in storage

This commit is contained in:
Oliver Gorwits
2023-07-27 07:12:08 +01:00
parent 3d64305512
commit 7afae0b9b2

View File

@@ -11,6 +11,7 @@ use App::Netdisco::Util::Permission 'acl_matches';
register_worker({ phase => 'main' }, sub {
my ($job, $workerconf) = @_;
my $device = $job->device;
return unless $device->in_storage;
return unless setting('tags')
and ref {} eq ref setting('tags')
@@ -35,6 +36,7 @@ register_worker({ phase => 'main' }, sub {
register_worker({ phase => 'main' }, sub {
my ($job, $workerconf) = @_;
my $device = $job->device;
return unless $device->in_storage;
return unless setting('tags')
and ref {} eq ref setting('tags')