)]}'
{"ironic/common/policy.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"83ed0e7cfd179a42e82d79f2be3eebe5b48842df","unresolved":false,"context_lines":[{"line_number":223,"context_line":"def get_enforcer():"},{"line_number":224,"context_line":"    \"\"\"Provides access to the single instance of Policy enforcer.\"\"\""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"    # This method is for use by oslopolicy CLI scripts. Those scripts need the"},{"line_number":227,"context_line":"    # \u0027output-file\u0027 and \u0027namespace\u0027 options, but having those in sys.argv means"},{"line_number":228,"context_line":"    # loading the Ironic config options will fail as those are not expected to"},{"line_number":229,"context_line":"    # be present. So we pass in an arg list with those stripped out."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a98d1f4_ca4d6dc5","line":226,"updated":"2016-10-03 14:24:27.000000000","message":"Hmm, this method is used by authorize, check and enforce methods too, so we will basically do this on every api request. Can we introduce a separate method? and then calls get_enforcer.","commit_id":"0f7151958c870a3c806ac0c482a211968873a38b"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"ad054ec543693a2a8ad79ebb5cfccf00b387d55c","unresolved":false,"context_lines":[{"line_number":223,"context_line":"def get_enforcer():"},{"line_number":224,"context_line":"    \"\"\"Provides access to the single instance of Policy enforcer.\"\"\""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"    # This method is for use by oslopolicy CLI scripts. Those scripts need the"},{"line_number":227,"context_line":"    # \u0027output-file\u0027 and \u0027namespace\u0027 options, but having those in sys.argv means"},{"line_number":228,"context_line":"    # loading the Ironic config options will fail as those are not expected to"},{"line_number":229,"context_line":"    # be present. So we pass in an arg list with those stripped out."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a98d1f4_2b509331","line":226,"in_reply_to":"3a98d1f4_ca4d6dc5","updated":"2016-10-03 15:05:08.000000000","message":"good suggestion!","commit_id":"0f7151958c870a3c806ac0c482a211968873a38b"}]}
