Permalink
Browse files

Quick update to add undefined to the rabbitmq server location

  • Loading branch information...
1 parent 6b7a56e commit 623ab3de8b1c3a90c3e48595089cf21a1865ddea @auser committed with tolbrino Aug 17, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −1 ebin/alice.app
  2. +1 −1 include/config.cfg
  3. +1 −0 src/utils/rabint.erl
View
@@ -5,7 +5,7 @@
{env, [
{port, 9999},
{log_path, "./logs/alice.log"},
- {rabbithost, "localhost"}
+ {rabbithost, undefined}
]},
{registered, [alice_app, alice_log, rest_app, rest_server]},
{applications, [kernel, stdlib]},
View
@@ -1,4 +1,4 @@
{port, 9999}.
{module, alice}.
{log_path, "logs/alice.log"}.
-{rabbithost, "localhost"}.
+{rabbithost, undefined}.
@@ -14,6 +14,7 @@ rpc_call(Mod, Fun, Args) -> rpc:call(rabbit_node(), Mod, Fun, Args, ?RPC_TIMEOU
rabbit_node() ->
case application:get_env(alice, rabbithost) of
undefined -> localnode(rabbit);
+ {ok, undefined} -> localnode(rabbit);
{ok, Hostname} -> rabbit_node(Hostname)
end.

0 comments on commit 623ab3d

Please sign in to comment.