aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/write/switch-add
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/write/switch-add')
-rwxr-xr-xweb/api/write/switch-add2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/write/switch-add b/web/api/write/switch-add
index d210567..f77df0a 100755
--- a/web/api/write/switch-add
+++ b/web/api/write/switch-add
@@ -84,7 +84,7 @@ foreach my $tmp2 (@tmp) {
$nms::web::dbh->do("INSERT INTO SWITCHES (mgmt_v4_addr, sysname, poll_frequency, community, lldp_chassis_id, mgmt_v6_addr, placement,subnet4,subnet6,distro_name) VALUES ($template{'mgmt_v4_addr'}, $template{'sysname'}, $template{'poll_frequency'}, $template{'community'}, $template{'lldp_chassis_id'}, $template{'mgmt_v6_addr'}, $template{'placement'},$template{'subnet4'},$template{'subnet6'},$template{'distro_name'});");
push @added, $switch{'sysname'};
- oplog($switch{'sysname'}, "Switch added: " . $switch{'sysname'});
+ oplog("\"" . $switch{'sysname'} . "\"", "Switch added: " . $switch{'sysname'});
}
}