diff options
-rw-r--r-- | scripts/vyatta-snmp.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-snmp.pl b/scripts/vyatta-snmp.pl index 59c7524b..511e1054 100644 --- a/scripts/vyatta-snmp.pl +++ b/scripts/vyatta-snmp.pl @@ -95,8 +95,7 @@ sub snmp_get_values { $output .= "syslocation \"$location\" \n"; } - my $multivalues = $config->returnValue("trap-target"); - my @trap_targets = split("\n", $multivalues); + my @trap_targets = $config->returnValues("trap-target"); foreach my $trap_target (@trap_targets) { $output .= "trapsink $trap_target\n"; } |