aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/write/switches
diff options
context:
space:
mode:
authorLasse Haugen <haugen.lasse@gmail.com>2023-04-05 22:35:38 +0200
committerLasse Haugen <haugen.lasse@gmail.com>2023-04-07 18:43:03 +0200
commit4cf3c338ad7bc5b171eb3b7d18c8d5494ac1a6df (patch)
treeae7bc513d81c0abb6cba7f8c7f530cf569ee72fd /web/api/write/switches
parent73712230cccb52757abdf3b3197b441ee301638a (diff)
tg23 fixtg23
Diffstat (limited to 'web/api/write/switches')
-rwxr-xr-xweb/api/write/switches3
1 files changed, 1 insertions, 2 deletions
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'};
}
}