Skip to content

Commit

Permalink
shipper: views: fix parsing maintainer API build enable/disable flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed Jun 29, 2021
1 parent 387a9c5 commit fc5125d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shipper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def maintainer_api_token_check(request):
@api_view(["GET"])
def maintainer_api_build_enabled_status_modify(request):
build_id = request.data.get("build_id")
enable = bool(request.data.get("enable"))
enable = request.data.get("enable").lower() == "true"
if build_id is None or enable is None:
return Response(
{
Expand Down

0 comments on commit fc5125d

Please sign in to comment.