summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-snmp.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-09 09:24:52 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-09 16:21:15 -0800
commit002783d4e34a51ba54690170fd6c950f960810c9 (patch)
treeff6bea73660fa0794cd52a52abc4fdf013527298 /scripts/vyatta-show-snmp.pl
parenteed00988fc2ad51faf4f3475193cff45f552fe59 (diff)
downloadvyatta-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-xscripts/vyatta-show-snmp.pl2
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;
}