From 8e35a7158eb57efb93513f4f541c3bd5744c62ac Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 31 Jul 2014 00:54:58 +0100 Subject: [PATCH] fix when interactives set to zero --- Netdisco/Changes | 4 ++++ Netdisco/lib/App/Netdisco/Configuration.pm | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index f973a84b..7f79d7b6 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -4,6 +4,10 @@ * [#122] CDP/LLDP discovery for some HP switches (M. Kosmach) + [BUG FIXES] + + * Fix when Interactives number set to zero + 2.028012 - 2014-07-22 [BUG FIXES] diff --git a/Netdisco/lib/App/Netdisco/Configuration.pm b/Netdisco/lib/App/Netdisco/Configuration.pm index 2dc444bc..91bec56c 100644 --- a/Netdisco/lib/App/Netdisco/Configuration.pm +++ b/Netdisco/lib/App/Netdisco/Configuration.pm @@ -43,7 +43,8 @@ setting('plugins')->{DBIC}->{daemon} = { # defaults for workers setting('workers')->{queue} ||= 'PostgreSQL'; -setting('workers')->{interactives} ||= 1; +setting('workers')->{interactives} = 1 + if setting('workers') and not exists setting('workers')->{interactives}; # force skipped DNS resolution, if unset setting('dns')->{hosts_file} ||= '/etc/hosts';