Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

issue replicas warning when configing default bucket. Bug 2712

Change-Id: I022ab72ad95aa0a93c2c7fc9efb58b71b242da7b
Reviewed-on: http://review.northscale.com/3130
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
commit bec930a7ae9d92610ee35cd9c79253873bf3b227 1 parent 3b5f5f1
@alk alk authored steveyen committed
Showing with 8 additions and 3 deletions.
  1. +8 −3 deps/menelaus/src/menelaus_web_buckets.erl
View
11 deps/menelaus/src/menelaus_web_buckets.erl
@@ -316,9 +316,14 @@ handle_setup_default_bucket_post(Req) ->
{errors, Errors} ->
reply_json(Req, {struct, Errors}, 400)
end;
- {true, {ok, _, JSONSummaries}} ->
- reply_json(Req, {struct, [{errors, {struct, []}},
- {summaries, {struct, JSONSummaries}}]}, 200)
+ {true, {ok, ParsedProps, JSONSummaries}} ->
+ FinalErrors = perform_warnings_validation(ParsedProps, []),
+ reply_json(Req, {struct, [{errors, {struct, FinalErrors}},
+ {summaries, {struct, JSONSummaries}}]},
+ case FinalErrors of
+ [] -> 200;
+ _ -> 400
+ end)
end.
-record(ram_summary, {
Please sign in to comment.
Something went wrong with that request. Please try again.