)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"45ae8a770293e0be860796faccb7c74dcf8262be","unresolved":false,"context_lines":[{"line_number":13,"context_line":"semantics. Here we add the \u0027ensure_resource_provider\u0027 method so"},{"line_number":14,"context_line":"resource providers also have a similarly simple way of being kept in"},{"line_number":15,"context_line":"sync.  We also add \u0027update_resource_provider\u0027 as a pre-requisite. On"},{"line_number":16,"context_line":"the side we also fix a little, silent unit test type error."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Ib615ceeb323970d179ffb3dee14e52cb40e73ae7"},{"line_number":19,"context_line":"Partial-Bug: #1578989"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_eb644c4f","line":16,"updated":"2018-07-30 13:49:19.000000000","message":"The lack of an \"update or create\" for resource providers is a hold over from the probably mistaken early assumption that rp creation would be a fairly static thing.","commit_id":"b4b498a1d8481a85343321a2e56e0092a327cb40"}],"neutron_lib/clients/placement.py":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"36c1a74c8c7e14ff15bacf27bb54e616c2786ba3","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return self.update_resource_provider("},{"line_number":175,"context_line":"                resource_provider\u003dresource_provider)"},{"line_number":176,"context_line":"        except n_exc.PlacementResourceProviderNotFound:"},{"line_number":177,"context_line":"            return self.create_resource_provider(resource_provider)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    @_check_placement_api_available"},{"line_number":180,"context_line":"    def delete_resource_provider(self, resource_provider_uuid):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_3b520215","line":177,"range":{"start_line":177,"start_character":24,"end_line":177,"end_character":48},"updated":"2018-08-07 20:43:49.000000000","message":"This return None but above said this method return the Resource Provider. Either the docstring or here needs to be fixed.","commit_id":"b78574bc04225a65f730ed63dcde7c69bcc379fa"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"38e7a5a0a5053298fb203994491c081b76939606","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return self.update_resource_provider("},{"line_number":175,"context_line":"                resource_provider\u003dresource_provider)"},{"line_number":176,"context_line":"        except n_exc.PlacementResourceProviderNotFound:"},{"line_number":177,"context_line":"            return self.create_resource_provider(resource_provider)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    @_check_placement_api_available"},{"line_number":180,"context_line":"    def delete_resource_provider(self, resource_provider_uuid):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_1437c2e5","line":177,"range":{"start_line":177,"start_character":24,"end_line":177,"end_character":48},"in_reply_to":"3f79a3b5_119a7e6d","updated":"2018-08-08 14:29:23.000000000","message":"Yes, that should fix it.","commit_id":"b78574bc04225a65f730ed63dcde7c69bcc379fa"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"6f420fc083d296bced956b290249b97c724f6df9","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return self.update_resource_provider("},{"line_number":175,"context_line":"                resource_provider\u003dresource_provider)"},{"line_number":176,"context_line":"        except n_exc.PlacementResourceProviderNotFound:"},{"line_number":177,"context_line":"            return self.create_resource_provider(resource_provider)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    @_check_placement_api_available"},{"line_number":180,"context_line":"    def delete_resource_provider(self, resource_provider_uuid):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_6999711d","line":177,"range":{"start_line":177,"start_character":24,"end_line":177,"end_character":48},"in_reply_to":"3f79a3b5_1437c2e5","updated":"2018-08-09 08:14:12.000000000","message":"Will bring that patch earlier in the series, so they are in the right order.","commit_id":"b78574bc04225a65f730ed63dcde7c69bcc379fa"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"ab17a61dd496cc3193a34d6991c281ff2bc67a2a","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return self.update_resource_provider("},{"line_number":175,"context_line":"                resource_provider\u003dresource_provider)"},{"line_number":176,"context_line":"        except n_exc.PlacementResourceProviderNotFound:"},{"line_number":177,"context_line":"            return self.create_resource_provider(resource_provider)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    @_check_placement_api_available"},{"line_number":180,"context_line":"    def delete_resource_provider(self, resource_provider_uuid):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_119a7e6d","line":177,"range":{"start_line":177,"start_character":24,"end_line":177,"end_character":48},"in_reply_to":"3f79a3b5_3b520215","updated":"2018-08-08 08:06:11.000000000","message":"Good catch. What do you think about an alternative fix like this?\nIfa4db6edd4c656023039f7a68c09bf2cea508231","commit_id":"b78574bc04225a65f730ed63dcde7c69bcc379fa"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"72f767510070a3f3f17a860b0fb0735aded2dd8c","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            # update does not tolerate if the uuid is repeated in the body"},{"line_number":151,"context_line":"            return self._put(url, {k: v for k, v"},{"line_number":152,"context_line":"                                   in resource_provider.items()"},{"line_number":153,"context_line":"                                   if k !\u003d \u0027uuid\u0027}).json()"},{"line_number":154,"context_line":"        except ks_exc.NotFound:"},{"line_number":155,"context_line":"            raise n_exc.PlacementResourceProviderNotFound("},{"line_number":156,"context_line":"                resource_provider\u003dresource_provider[\u0027uuid\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_6332a512","line":153,"updated":"2018-08-13 10:33:28.000000000","message":"can\u0027t You just something like:\n\n    uuid \u003d resource_provider.pop(\u0027uuid\u0027, None)","commit_id":"fe60d22c23582950b77bc49fae8b4c54561dfd93"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"2d30bc1a4845b74b86400e18dace623f8fada37d","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            # update does not tolerate if the uuid is repeated in the body"},{"line_number":151,"context_line":"            return self._put(url, {k: v for k, v"},{"line_number":152,"context_line":"                                   in resource_provider.items()"},{"line_number":153,"context_line":"                                   if k !\u003d \u0027uuid\u0027}).json()"},{"line_number":154,"context_line":"        except ks_exc.NotFound:"},{"line_number":155,"context_line":"            raise n_exc.PlacementResourceProviderNotFound("},{"line_number":156,"context_line":"                resource_provider\u003dresource_provider[\u0027uuid\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_9467c7e9","line":153,"in_reply_to":"3f79a3b5_6332a512","updated":"2018-08-15 09:43:37.000000000","message":"That\u0027s definitely nicer to read, but it would change \u0027resource_provider\u0027 in our caller. What do you think about the way it\u0027s in ps6?","commit_id":"fe60d22c23582950b77bc49fae8b4c54561dfd93"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a3488adfd9b49c4bcdafbcc5c279b32ebe3284f9","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            # update does not tolerate if the uuid is repeated in the body"},{"line_number":151,"context_line":"            return self._put(url, {k: v for k, v"},{"line_number":152,"context_line":"                                   in resource_provider.items()"},{"line_number":153,"context_line":"                                   if k !\u003d \u0027uuid\u0027}).json()"},{"line_number":154,"context_line":"        except ks_exc.NotFound:"},{"line_number":155,"context_line":"            raise n_exc.PlacementResourceProviderNotFound("},{"line_number":156,"context_line":"                resource_provider\u003dresource_provider[\u0027uuid\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_90658520","line":153,"in_reply_to":"3f79a3b5_9467c7e9","updated":"2018-08-15 19:43:00.000000000","message":"yes, IMO new solution is nicer. Thanks","commit_id":"fe60d22c23582950b77bc49fae8b4c54561dfd93"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"865e40fa07b11962675d54d86485e09f54d6a313","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        :param resource_provider: The resource provider. A dict with"},{"line_number":132,"context_line":"                                  the uuid (required),"},{"line_number":133,"context_line":"                                  the name (required) and"},{"line_number":134,"context_line":"                                  the parent_provider_uuid (optional)."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":137,"context_line":"        return self._post(url, resource_provider).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f79a3b5_5648502b","line":134,"updated":"2018-08-15 14:01:14.000000000","message":"Nit: technically these doc strings should include a :returns as well","commit_id":"e8d505e19ed05373a90724f566a825205a579292"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"28e9b98f197e693fd6c288209c23e46ff5905a0a","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        :param resource_provider: The resource provider. A dict with"},{"line_number":132,"context_line":"                                  the uuid (required),"},{"line_number":133,"context_line":"                                  the name (required) and"},{"line_number":134,"context_line":"                                  the parent_provider_uuid (optional)."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":137,"context_line":"        return self._post(url, resource_provider).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f79a3b5_bff6425c","line":134,"in_reply_to":"3f79a3b5_5648502b","updated":"2018-08-16 13:49:40.000000000","message":"Done","commit_id":"e8d505e19ed05373a90724f566a825205a579292"}],"neutron_lib/tests/unit/clients/test_placement.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a7ee137508028a20c85c4ef6502d1c88ef030788","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        self.placement_fixture.mock_put.assert_called_once_with("},{"line_number":75,"context_line":"            \u0027/resource_providers/%s\u0027 % RESOURCE_PROVIDER_UUID,"},{"line_number":76,"context_line":"            {\u0027name\u0027: RESOURCE_PROVIDER_NAME}"},{"line_number":77,"context_line":"        )"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def test_ensure_create_resource_provider(self):"},{"line_number":80,"context_line":"        self.placement_fixture.mock_put.side_effect \u003d \\"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_0cdae248","line":77,"updated":"2018-07-19 10:15:42.000000000","message":"You can check here also if mock_post wasn\u0027t called","commit_id":"95806677dc0cec129a2b06d990fea430663fbdf7"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"4d252d2981a6dd2c35f2a6c7f50e3e25a08d57de","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        self.placement_fixture.mock_put.assert_called_once_with("},{"line_number":75,"context_line":"            \u0027/resource_providers/%s\u0027 % RESOURCE_PROVIDER_UUID,"},{"line_number":76,"context_line":"            {\u0027name\u0027: RESOURCE_PROVIDER_NAME}"},{"line_number":77,"context_line":"        )"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def test_ensure_create_resource_provider(self):"},{"line_number":80,"context_line":"        self.placement_fixture.mock_put.side_effect \u003d \\"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_9dc4c20f","line":77,"in_reply_to":"5f7c97a3_0cdae248","updated":"2018-07-20 11:56:18.000000000","message":"Good idea, done.","commit_id":"95806677dc0cec129a2b06d990fea430663fbdf7"}]}
