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 | 49df29b81e486158806ae45417112926675aea35 (patch) | |
| tree | 96a35e5409974a6d93d956a63d0082f4a948cf39 /src | |
| parent | 35ab5479ddd4604d6a87d192a493379607c770cd (diff) | |
| download | rabbitmq-server-git-49df29b81e486158806ae45417112926675aea35.tar.gz | |
Convert use of proplists:lookup to proplists:get_value
Diffstat (limited to 'src')
| -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 9f90e7d4c9..26274a365e 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. |
