diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-25 17:21:52 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-25 17:21:52 +0100 |
commit | 517584a962cf187f47b10243a705f7e6490dc181 (patch) | |
tree | 96a35e5409974a6d93d956a63d0082f4a948cf39 | |
parent | a0d2a3e3d18c28f1d2e8af6880a95699600a9ff6 (diff) | |
download | rabbitmq-server-517584a962cf187f47b10243a705f7e6490dc181.tar.gz |
Convert use of proplists:lookup to proplists:get_value
-rw-r--r-- | src/rabbit_plugin_activator.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rabbit_plugin_activator.erl b/src/rabbit_plugin_activator.erl index 9f90e7d4..26274a36 100644 --- a/src/rabbit_plugin_activator.erl +++ b/src/rabbit_plugin_activator.erl @@ -77,7 +77,7 @@ start() -> AppList end, AppVersions = [determine_version(App) || App <- AllApps], - {rabbit, RabbitVersion} = proplists:lookup(rabbit, AppVersions), + RabbitVersion = proplists:get_value(rabbit, AppVersions), %% Build the overall release descriptor RDesc = {release, @@ -131,9 +131,8 @@ start() -> error -> error("failed to compile boot script file ~s", [ScriptFile]) end, io:format("~n~w plugins activated:~n", [length(PluginApps)]), - [io:format("* ~s-~s~n", [App, Vsn]) || - App <- PluginApps, - {_, Vsn} <- [proplists:lookup(App, AppVersions)]], + [io:format("* ~s-~s~n", [App, proplists:get_value(App, AppVersions)]) + || App <- PluginApps], io:nl(), halt(), ok. |