also set fqdn undefined in resultset

This commit is contained in:
Oliver Gorwits
2017-06-18 22:51:30 +01:00
parent 4092d79718
commit 40ca29cc8c

View File

@@ -4,8 +4,6 @@ use base 'App::Netdisco::DB::ResultSet';
use strict;
use warnings;
use Net::Domain 'hostfqdn';
__PACKAGE__->load_components(qw/
+App::Netdisco::DB::ExplicitLocking
/);
@@ -25,7 +23,7 @@ C<retry_after> when devices will be retried once (disabled if 0/undef passed).
sub skipped {
my ($rs, $backend, $max_deferrals, $retry) = @_;
$backend ||= (hostfqdn || 'localhost');
$backend ||= 'fqdn-undefined';
$max_deferrals ||= 10_000_000; # not really 'disabled'
$retry ||= '100 years'; # not really 'disabled'