Only jmx+repl means old EE

With riak-2.2.5 and onwards repl is open source, meaning a more complex
decision for rt:product
This commit is contained in:
Russell Brown 2017-11-20 16:39:19 +00:00
parent cff2106544
commit 19e57dcfe8

View File

@ -1207,9 +1207,10 @@ product(Node) ->
HasRiakCS = proplists:is_defined(riak_cs, Applications), HasRiakCS = proplists:is_defined(riak_cs, Applications),
HasRiakEE = proplists:is_defined(riak_repl, Applications), HasRiakEE = proplists:is_defined(riak_repl, Applications),
HasRiakJMX = proplists:is_defined(riak_jmx, Applications),
HasRiak = proplists:is_defined(riak_kv, Applications), HasRiak = proplists:is_defined(riak_kv, Applications),
if HasRiakCS -> riak_cs; if HasRiakCS -> riak_cs;
HasRiakEE -> riak_ee; HasRiakEE andalso HasRiakJMX -> riak_ee;
HasRiak -> riak; HasRiak -> riak;
true -> unknown true -> unknown
end. end.