Skip to content

Commit

Permalink
default to PathPrefix = "" when calling List*
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Zavada committed Dec 31, 2023
1 parent f43356e commit 305c0b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/riak_cs/src/riak_cs_wm_iam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ do_action("ListUsers",
Form, RD, Ctx = #rcs_web_context{riak_client = RcPid,
response_module = ResponseMod,
request_id = RequestId}) ->
PathPrefix = proplists:get_value("PathPrefix", Form, "/"),
PathPrefix = proplists:get_value("PathPrefix", Form, ""),
MaxItems = proplists:get_value("MaxItems", Form),
Marker = proplists:get_value("Marker", Form),
case riak_cs_iam:list_users(
Expand Down Expand Up @@ -322,7 +322,7 @@ do_action("ListRoles",
Form, RD, Ctx = #rcs_web_context{riak_client = RcPid,
response_module = ResponseMod,
request_id = RequestId}) ->
PathPrefix = proplists:get_value("PathPrefix", Form, "/"),
PathPrefix = proplists:get_value("PathPrefix", Form, ""),
MaxItems = proplists:get_value("MaxItems", Form),
Marker = proplists:get_value("Marker", Form),
case riak_cs_iam:list_roles(
Expand Down Expand Up @@ -406,7 +406,7 @@ do_action("ListPolicies",
Form, RD, Ctx = #rcs_web_context{riak_client = RcPid,
response_module = ResponseMod,
request_id = RequestId}) ->
PathPrefix = proplists:get_value("PathPrefix", Form, "/"),
PathPrefix = proplists:get_value("PathPrefix", Form, ""),
OnlyAttached = proplists:get_value("OnlyAttached", Form, "false"),
PolicyUsageFilter = proplists:get_value("PolicyUsageFilter", Form, "All"),
Scope = proplists:get_value("Scope", Form, "All"),
Expand Down Expand Up @@ -437,7 +437,7 @@ do_action("ListAttachedUserPolicies",
Form, RD, Ctx = #rcs_web_context{riak_client = RcPid,
response_module = ResponseMod,
request_id = RequestId}) ->
PathPrefix = proplists:get_value("PathPrefix", Form, "/"),
PathPrefix = proplists:get_value("PathPrefix", Form, ""),
UserName = proplists:get_value("UserName", Form),
%% _MaxItems = proplists:get_value("MaxItems", Form),
%% _Marker = proplists:get_value("Marker", Form),
Expand All @@ -462,7 +462,7 @@ do_action("ListAttachedRolePolicies",
Form, RD, Ctx = #rcs_web_context{riak_client = RcPid,
response_module = ResponseMod,
request_id = RequestId}) ->
PathPrefix = proplists:get_value("PathPrefix", Form, "/"),
PathPrefix = proplists:get_value("PathPrefix", Form, ""),
RoleName = proplists:get_value("RoleName", Form),
%% _MaxItems = proplists:get_value("MaxItems", Form),
%% _Marker = proplists:get_value("Marker", Form),
Expand Down

0 comments on commit 305c0b1

Please sign in to comment.