Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Simplify notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Oct 19, 2019
1 parent 8bdc6aa commit 3d41e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubemen/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def kubemen():
<https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#webhook-request-and-response>`_
"""
review = request.get_json(force=True)
review.update(response={"uid": review["request"]["uid"], "allowed": True})
review["response"] = {"uid": review["request"]["uid"], "allowed": True}

username_regexp = current_app.config.get("USERNAME_REGEXP")
username_format = current_app.config.get("USERNAME_FORMAT")
Expand Down

0 comments on commit 3d41e59

Please sign in to comment.