fix shocking typo in netmap code
This commit is contained in:
@@ -126,7 +126,7 @@ from the current release of Netdisco, and apply it yourself:
|
||||
|
||||
=head1 Startup
|
||||
|
||||
Run the following command to start the web-app server as a daemon:
|
||||
Run the following command to start the web-app server as a daemon (port 5000):
|
||||
|
||||
DANCER_ENVDIR=~/environments ~/bin/netdisco-web start
|
||||
|
||||
|
||||
@@ -120,14 +120,14 @@ get '/ajax/data/device/netmap' => sub {
|
||||
my $start = param('q');
|
||||
return unless $start;
|
||||
|
||||
my @devices = schmea('netdisco')->resultset('Device')->search({}, {
|
||||
my @devices = schema('netdisco')->resultset('Device')->search({}, {
|
||||
result_class => 'DBIx::Class::ResultClass::HashRefInflator',
|
||||
columns => ['ip', 'dns'],
|
||||
})->all;
|
||||
var(devices => { map { $_->{ip} => $_->{dns} } @devices });
|
||||
|
||||
var(links => {});
|
||||
my $rs = schmea('netdisco')->resultset('Virtual::DeviceLinks')->search({}, {
|
||||
my $rs = schema('netdisco')->resultset('Virtual::DeviceLinks')->search({}, {
|
||||
result_class => 'DBIx::Class::ResultClass::HashRefInflator',
|
||||
});
|
||||
|
||||
@@ -150,13 +150,13 @@ get '/ajax/data/device/netmap' => sub {
|
||||
};
|
||||
|
||||
ajax '/ajax/data/device/alldevicelinks' => sub {
|
||||
my @devices = schmea('netdisco')->resultset('Device')->search({}, {
|
||||
my @devices = schema('netdisco')->resultset('Device')->search({}, {
|
||||
result_class => 'DBIx::Class::ResultClass::HashRefInflator',
|
||||
columns => ['ip', 'dns'],
|
||||
})->all;
|
||||
var(devices => { map { $_->{ip} => $_->{dns} } @devices });
|
||||
|
||||
my $rs = schmea('netdisco')->resultset('Virtual::DeviceLinks')->search({}, {
|
||||
my $rs = schema('netdisco')->resultset('Virtual::DeviceLinks')->search({}, {
|
||||
result_class => 'DBIx::Class::ResultClass::HashRefInflator',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user