#929 implement first half of multi tenancy with tenant_databases setting
This commit is contained in:
@@ -22,7 +22,7 @@ register_report(
|
||||
);
|
||||
|
||||
get '/ajax/content/report/portmultinodes' => require_login sub {
|
||||
my @results = schema('netdisco')->resultset('Device')->search(
|
||||
my @results = schema(vars->{'tenant'})->resultset('Device')->search(
|
||||
{ 'ports.remote_ip' => undef,
|
||||
(param('vlan') ?
|
||||
('ports.vlan' => param('vlan'), 'nodes.vlan' => param('vlan')) : ()),
|
||||
|
||||
Reference in New Issue
Block a user