)]}'
{"ceilometer/compute/discovery.py":[{"author":{"_account_id":19156,"name":"Leehom Li","email":"feli5_li@163.com","username":"leehom"},"change_message_id":"3114bc9f0f43625527ec142ca1c553496ce440c1","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    @cachetools.cachedmethod(operator.attrgetter(\u0027_flavor_cache\u0027))"},{"line_number":130,"context_line":"    def get_flavor_id(self, name):"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            return self.nova_cli.nova_client.flavors.find(name\u003dname).id"},{"line_number":133,"context_line":"        except exceptions.NotFound:"},{"line_number":134,"context_line":"            return name"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_5991ce4f","line":132,"updated":"2018-12-05 03:35:41.000000000","message":"return self.nova_cli.nova_client.flavors.find(name\u003dname, is_public\u003dNone).id\ncan get id from private flaovr","commit_id":"4fd138c26d17b5c1d8b107d80f4c8059898ff64a"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"815b2e98b056b074b16dbbd290c72d39beb88c98","unresolved":true,"context_lines":[{"line_number":129,"context_line":"    def get_flavor_id(self, name):"},{"line_number":130,"context_line":"        try:"},{"line_number":131,"context_line":"            return self.nova_cli.nova_client.flavors.find("},{"line_number":132,"context_line":"                name\u003dname, is_public\u003dNone).id"},{"line_number":133,"context_line":"        except exceptions.NotFound:"},{"line_number":134,"context_line":"            return name"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"41e5420f_886518a3","line":132,"range":{"start_line":132,"start_character":27,"end_line":132,"end_character":41},"updated":"2021-02-10 17:46:23.000000000","message":"this allows to fetch all flavors, both private and public (default in this method is True)","commit_id":"5d40f5e70ac502978405ef55c095356694ae8128"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"815b2e98b056b074b16dbbd290c72d39beb88c98","unresolved":true,"context_lines":[{"line_number":131,"context_line":"            return self.nova_cli.nova_client.flavors.find("},{"line_number":132,"context_line":"                name\u003dname, is_public\u003dNone).id"},{"line_number":133,"context_line":"        except exceptions.NotFound:"},{"line_number":134,"context_line":"            return name"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    @libvirt_utils.retry_on_disconnect"},{"line_number":137,"context_line":"    def discover_libvirt_polling(self, manager, param\u003dNone):"}],"source_content_type":"text/x-python","patch_set":4,"id":"203cdde3_1d112dc7","line":134,"updated":"2021-02-10 17:46:23.000000000","message":"for the edge/rare case when the flavor gets deleted before the instance is \u0027discovered\u0027, we will return the name of the flavor instead, so that the resource can be created later in gnocchi since the flavor_id is a required property of instance in the resource schema, and it is better to return at least the name.","commit_id":"5d40f5e70ac502978405ef55c095356694ae8128"}]}
