aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/app/snmp_app.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2013-05-23 11:17:21 +0200
committerMicael Karlberg <[email protected]>2013-05-23 11:17:21 +0200
commit6703fc56a382e62530ba23cb5452da6f4cccbe91 (patch)
tree24cbeea760eccbf83df62283ebe3a86af1b0d2ff /lib/snmp/src/app/snmp_app.erl
parentdccaf2ca6b85ceaf05ea43262e18af9f63a76b02 (diff)
downloadotp-6703fc56a382e62530ba23cb5452da6f4cccbe91.tar.gz
otp-6703fc56a382e62530ba23cb5452da6f4cccbe91.tar.bz2
otp-6703fc56a382e62530ba23cb5452da6f4cccbe91.zip
[snmp/agent] Updated the config tool with new mib-storage format
Diffstat (limited to 'lib/snmp/src/app/snmp_app.erl')
-rw-r--r--lib/snmp/src/app/snmp_app.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/snmp/src/app/snmp_app.erl b/lib/snmp/src/app/snmp_app.erl
index deb42cc373..0cfbb22a5a 100644
--- a/lib/snmp/src/app/snmp_app.erl
+++ b/lib/snmp/src/app/snmp_app.erl
@@ -62,17 +62,17 @@ entities([], []) ->
?d("entities -> converted config: ~n~p", [Conf]),
[{agent, Conf}]
end;
-entities([], E) ->
+entities([], Acc) ->
?d("entities -> done", []),
- lists:reverse(E);
-entities([ET|ETs], E) ->
+ lists:reverse(Acc);
+entities([Ent|Ents], Acc) ->
?d("entities -> entry with"
- "~n ET: ~p", [ET]),
- case application:get_env(snmp, ET) of
+ "~n Ent: ~p", [Ent]),
+ case application:get_env(snmp, Ent) of
{ok, Conf} ->
- entities(ETs, [{ET, Conf}|E]);
+ entities(Ents, [{Ent, Conf}|Acc]);
_ ->
- entities(ETs, E)
+ entities(Ents, Acc)
end.
start_entities(_Type, []) ->