Commits

Paul Jones  committed 0851181 Merge

Merge bug22541 into master

  • Participants
  • Parent commits 11a427e, 04a8b77

Comments (0)

Files changed (2)

File src/bql_applicator.erl

 
 apply_commands(Commands, User, VHost) ->
     % Create a connection to the Rabbit node
-    Node = rabbit_misc:makenode("rabbit"),
+    Node = rabbit_misc:makenode(node()),
 
     {ok, [catch apply_command(Command, #state {node = Node, user = User, vhost = VHost}) 
             || Command <- Commands]}.

File src/bql_client.erl

   Password = list_to_binary(bql_utils:argument_or_default(password, "guest")),
   VHost = list_to_binary(bql_utils:argument_or_default(vhost, "/")),
   Host = bql_utils:argument_or_default(host, "localhost"),
-  Port = bql_utils:argument_or_default(port, ?PROTOCOL_PORT),
+  Port = list_to_integer(bql_utils:argument_or_default(port, integer_to_list(?PROTOCOL_PORT))),
   connect(Host, Port, Username, Password, VHost).
 
 %% Creates a connection to the Rabbit server that can subsequently be used