diff --git a/Netdisco/lib/App/Netdisco/JobQueue/PostgreSQL.pm b/Netdisco/lib/App/Netdisco/JobQueue/PostgreSQL.pm index ca1c4ced..ffd89ef7 100644 --- a/Netdisco/lib/App/Netdisco/JobQueue/PostgreSQL.pm +++ b/Netdisco/lib/App/Netdisco/JobQueue/PostgreSQL.pm @@ -4,8 +4,8 @@ use Dancer qw/:moose :syntax :script/; use Dancer::Plugin::DBIC 'schema'; use Net::Domain 'hostfqdn'; +use Module::Load (); use Try::Tiny; -use MCE (); use base 'Exporter'; our @EXPORT = (); @@ -105,6 +105,7 @@ sub jq_userlog { # MCE ->do() method. sub jq_take { my ($wid, $type) = @_; + Module::Load::load 'MCE'; # be polite to SQLite database (that is, local CPU) debug "$type ($wid): sleeping now..."; diff --git a/Netdisco/share/views/ajax/search/node_by_ip.tt b/Netdisco/share/views/ajax/search/node_by_ip.tt index c2d54db1..03f8fbc9 100644 --- a/Netdisco/share/views/ajax/search/node_by_ip.tt +++ b/Netdisco/share/views/ajax/search/node_by_ip.tt @@ -103,7 +103,8 @@ [% END %] Switch Port - + [% node.switch | html_entity %] - [% node.port | html_entity %] [% ' ' IF NOT node.active %]