)]}'
{"nova/api/openstack/compute/hypervisors.py":[{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"937e31f0e6887aa9b50ab7562de49c5eae4fcef1","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    def _full_view_hypervisor(self, req, hypervisor, service):"},{"line_number":78,"context_line":"        return self._view_hypervisor(hypervisor, service, True)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    @wsgi.Controller.api_version(\"2.23\")"},{"line_number":81,"context_line":"    def _full_view_hypervisor(self, req, hypervisor, service):"},{"line_number":82,"context_line":"        hyp_dict \u003d self._view_hypervisor(hypervisor, service, True)"},{"line_number":83,"context_line":"        # add host_capabilities to the view."}],"source_content_type":"text/x-python","patch_set":1,"id":"9aed3d3a_6c9782ec","line":80,"range":{"start_line":80,"start_character":10,"end_line":80,"end_character":20},"updated":"2016-02-29 09:27:20.000000000","message":"we should not add this kind of functions here\nwe should use at top layer function such as index/show etc\n\nin your case, you can change _view_hypervisor function to comapre the req\u0027s version with 2.23\nif it\u0027s greater or equal, you can add the host_capaiblities\noetherwise, seem to before\n\nhttps://github.com/openstack/nova/blob/master/doc/source/api_microversion_dev.rst","commit_id":"0fbe9744518fa72d67334e4255e42df8864caee8"}]}
