diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-09 09:24:52 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-09 16:21:15 -0800 |
commit | 002783d4e34a51ba54690170fd6c950f960810c9 (patch) | |
tree | ff6bea73660fa0794cd52a52abc4fdf013527298 /scripts/vyatta-show-snmp.pl | |
parent | eed00988fc2ad51faf4f3475193cff45f552fe59 (diff) | |
download | vyatta-op-002783d4e34a51ba54690170fd6c950f960810c9.tar.gz vyatta-op-002783d4e34a51ba54690170fd6c950f960810c9.zip |
Fix lookup of community string
Community may have optional client restriction
Diffstat (limited to 'scripts/vyatta-show-snmp.pl')
-rwxr-xr-x | scripts/vyatta-show-snmp.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-show-snmp.pl b/scripts/vyatta-show-snmp.pl index 9c8e814..979234b 100755 --- a/scripts/vyatta-show-snmp.pl +++ b/scripts/vyatta-show-snmp.pl @@ -30,7 +30,7 @@ sub get_community { or return; my $community; while (<$cfg>) { - next unless m/^r[ow]community (\w+)$/; + next unless m/^r[ow]community (\w+)/; $community = $1; last; } |