)]}'
{"neutron/db/db_base_plugin_common.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"ae0c7246e723bb4c20ca72c7aedf5bb25abafb79","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        # The shared attribute for a network now reflects if the network"},{"line_number":224,"context_line":"        # is shared to the calling tenant via an RBAC entry."},{"line_number":225,"context_line":"        shared \u003d False"},{"line_number":226,"context_line":"        if context:"},{"line_number":227,"context_line":"            for entry in network.rbac_entries:"},{"line_number":228,"context_line":"                if (entry.action \u003d\u003d \u0027access_as_shared\u0027 and"},{"line_number":229,"context_line":"                        entry.target_tenant in (\u0027*\u0027, context.tenant_id)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_a86dc89a","line":226,"updated":"2015-07-18 07:48:08.000000000","message":"Sorry, i had meant to do this and even set the default to None but forgot to update the logic.\n\nHowever, this isn\u0027t the correct fix. You still want to check for the wildcard when there is no context to preserve compatibility with old shared networks.\n\nmatches \u003d (\u0027*\u0027,) + ((context.tenant_id,) if context else ())\nfor entry in network.rbac_entries:\n    if (entry.action \u003d\u003d \u0027access_as_shared\u0027 and\n            entry.target_tenant in matches):\n        shared \u003d True\n        break","commit_id":"72c3342f82e13b2f15dbf4ea1d2e89adb130bf59"}]}
