)]}'
{"nova/scheduler/client/report.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"204fd77dcc4b8ad4a48f016f07d50c8dbdaa9216","unresolved":false,"context_lines":[{"line_number":295,"context_line":"                      \"for resource provider with UUID {0} and name {1}.\")"},{"line_number":296,"context_line":"            msg \u003d msg.format(uuid, name)"},{"line_number":297,"context_line":"            LOG.info(msg)"},{"line_number":298,"context_line":"            return objects.ResourceProvider("},{"line_number":299,"context_line":"                    uuid\u003duuid,"},{"line_number":300,"context_line":"                    name\u003dname,"},{"line_number":301,"context_line":"                    generation\u003d0,"},{"line_number":302,"context_line":"            )"},{"line_number":303,"context_line":"        elif resp.status_code \u003d\u003d 409:"},{"line_number":304,"context_line":"            # Another thread concurrently created a resource provider with the"},{"line_number":305,"context_line":"            # same UUID. Log a warning and then just return the resource"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_98ad61eb","line":302,"range":{"start_line":298,"start_character":12,"end_line":302,"end_character":13},"updated":"2017-01-31 17:39:25.000000000","message":"I was thinking maybe we could just build the object from the response, but we don\u0027t send the created resource provider back in the response, only a link to GET it, so yeah I guess this is as good as we can do right now besides doing the POST and then a GET and populating the RP object from that response.\n\nAnd good catch on the default value for generation:\n\nhttps://github.com/openstack/nova/blob/dae6b760b9c40bbf3b72a0218dbf1dbc823f30e2/nova/db/sqlalchemy/api_models.py#L301","commit_id":"29f3d8bae23750ec53b59a258eb71459e6972927"}]}
