From 7fb2a008d48931ab7deb6f31a2d7c4289a71f09a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 9 Apr 2023 09:33:48 +0200 Subject: TG23: Throw everything over the wall and run! --- web/api/write/switches | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'web/api/write/switches') diff --git a/web/api/write/switches b/web/api/write/switches index e0ee950..470cde1 100755 --- a/web/api/write/switches +++ b/web/api/write/switches @@ -23,7 +23,6 @@ my @dups; my $sth = $nms::web::dbh->prepare("SELECT sysname FROM switches WHERE sysname=?"); - my @fields = ( 'community', 'tags', 'distro_name', 'distro_phy_port', 'mgmt_v4_addr', 'mgmt_v6_addr', 'mgmt_vlan', 'placement', 'poll_frequency', 'sysname', 'traffic_vlan', 'deleted'); sub convertplace @@ -112,7 +111,7 @@ foreach my $tmp2 (@tmp) { push @set, "$_=" . $dbh->quote($switch{$_}); } } keys %switch; - $nms::web::dbh->do("UPDATE SWITCHES SET " . join(", ", @set) . "WHERE sysname=" . $dbh->quote($switch{'sysname'}) . ";"); + $nms::web::dbh->do("UPDATE SWITCHES SET " . join(", ", @set) . " WHERE sysname=" . $dbh->quote($switch{'sysname'}) . ";"); push @dups, $switch{'sysname'}; } } -- cgit v1.2.3