Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Return HTTP 200 on GET
  • Loading branch information
kxepal committed Oct 12, 2015
1 parent d0a9b72 commit 747144ee259b1fe084ee041f783936a7ee1cf2de
Showing 1 changed file with 3 additions and 3 deletions.
@@ -31,13 +31,13 @@ handle_setup_req(#httpd{method='GET'}=Req) ->
ok = chttpd:verify_is_server_admin(Req),
case setup:is_cluster_enabled() of
no ->
chttpd:send_json(Req, 201, {[{state, cluster_disabled}]});
chttpd:send_json(Req, 200, {[{state, cluster_disabled}]});
ok ->
case setup:has_cluster_system_dbs() of
no ->
chttpd:send_json(Req, 201, {[{state, cluster_enabled}]});
chttpd:send_json(Req, 200, {[{state, cluster_enabled}]});
ok ->
chttpd:send_json(Req, 201, {[{state, cluster_finished}]})
chttpd:send_json(Req, 200, {[{state, cluster_finished}]})
end
end.

0 comments on commit 747144e

Please sign in to comment.