diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-10-08 17:40:42 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-10-08 17:40:42 +0100 |
| commit | 9aab11d58d559bea0136e1501024046456e76fdc (patch) | |
| tree | 242a13464a63d8bbc1c9971841034d3844ca2c1d | |
| parent | c292890255537ad8cc5f9a87758130bf2c6f4062 (diff) | |
| download | rabbitmq-server-git-9aab11d58d559bea0136e1501024046456e76fdc.tar.gz | |
Return environment for all apps.
| -rw-r--r-- | src/rabbit.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 1dd7c1e9ee..664da20688 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -470,8 +470,13 @@ is_running() -> is_running(node()). is_running(Node) -> rabbit_nodes:is_process_running(Node, rabbit). environment() -> - lists:keysort(1, [P || P = {K, _} <- application:get_all_env(rabbit), - K =/= default_pass]). + [{A, environment(A)} || + {A, _, _} <- lists:keysort(1, application:which_applications())]. + +environment(App) -> + Ignore = [default_pass, included_applications], + lists:keysort(1, [P || P = {K, _} <- application:get_all_env(App), + not lists:member(K, Ignore)]). rotate_logs(BinarySuffix) -> Suffix = binary_to_list(BinarySuffix), |
