diff options
Diffstat (limited to 'web/api/write/switch-add')
-rwxr-xr-x | web/api/write/switch-add | 2 |
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'}); } } |