anchor.diff:  %% @end
   %%
   register() ->
  -  io:format("Query Body: ~p~n", [registration_body()]),
     case httpc:request(post, {build_url("agent/service/register"),
                               [], ?MIME_TYPE, registration_body()},
                        [], []) of
  
positive.code: %%==============================================================================
  %% @author Gavin M. Roy <gavinr@aweber.com>
  %% @copyright 2014 AWeber Communications
  %% @end
  %%==============================================================================
  -module(rabbit_autocluster_consul).
  
  -export([init/0, shutdown/0]).
  
  -rabbit_boot_step({?MODULE,
                     [{description, <<"Automated cluster configuration via Consul">>},
  
negative.code:     Other ->
        io:format("Error registering: ~p~n", [Other])
    end,
    Nodes = cluster_nodes(),
    case lists:member(node(), Nodes) of
      true -> ok;
      false -> join_cluster(Nodes)
    end.
  
  
  %% @public
  %% @spec shutdown() -> ok
  