)]}'
{"zun/scheduler/filters/label_filter.py":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"7b7653e29140a182ceb20bd76115e73ad3e03868","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_9d12ca08","line":1,"range":{"start_line":1,"start_character":16,"end_line":1,"end_character":20},"updated":"2017-05-22 09:57:20.000000000","message":"You can change this :)","commit_id":"54a61abf681d7ebe331b3a7d0df6af9df441a11f"},{"author":{"_account_id":8264,"name":"Shunli Zhou","username":"ShunliZhou"},"change_message_id":"05bf184ef9602b479f1e2c147bafb992e2b87f13","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_22a93d8f","line":1,"range":{"start_line":1,"start_character":16,"end_line":1,"end_character":20},"in_reply_to":"ff0f0b1f_9d12ca08","updated":"2017-05-23 00:38:10.000000000","message":"Done","commit_id":"54a61abf681d7ebe331b3a7d0df6af9df441a11f"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"f66614ab2ce162113039541aa70179c44bb2c708","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def host_passes(self, host_state, container):"},{"line_number":29,"context_line":"        if not container.labels:"},{"line_number":30,"context_line":"            return True"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        for key in container.labels:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_51806146","line":29,"range":{"start_line":29,"start_character":25,"end_line":29,"end_character":31},"updated":"2017-05-23 19:03:31.000000000","message":"Hi Shunli,\n\nI think \u0027labels\u0027 field in container is simply for meta data (not for selecting a node). I propose to introduce another flag for that (e.g. how about --hint \u003ckey\u003dvalue\u003e or --scheduler-hint \u003ckey\u003dvalue\u003e).","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":23365,"name":"feng.shengqin","email":"feng.shengqin@zte.com.cn","username":"FengShengqin"},"change_message_id":"d3e7ed67ad67972917399a72de95e89afcac4748","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def host_passes(self, host_state, container):"},{"line_number":29,"context_line":"        if not container.labels:"},{"line_number":30,"context_line":"            return True"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        for key in container.labels:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_87221bb8","line":29,"range":{"start_line":29,"start_character":25,"end_line":29,"end_character":31},"in_reply_to":"ff0f0b1f_51806146","updated":"2017-05-24 14:59:31.000000000","message":"+1 \nCurrently, \u003ckey\u003dvalue\u003e is the lable of container. \nIt is better to set the lables for container and host separatly.","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":8264,"name":"Shunli Zhou","username":"ShunliZhou"},"change_message_id":"f4fca1d40ccc5d3bedd3439b4672a3c423de2a8b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def host_passes(self, host_state, container):"},{"line_number":29,"context_line":"        if not container.labels:"},{"line_number":30,"context_line":"            return True"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        for key in container.labels:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf091321_150ff8e1","line":29,"range":{"start_line":29,"start_character":25,"end_line":29,"end_character":31},"in_reply_to":"ff0f0b1f_51806146","updated":"2017-06-12 07:07:41.000000000","message":"Done","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":8264,"name":"Shunli Zhou","username":"ShunliZhou"},"change_message_id":"f4fca1d40ccc5d3bedd3439b4672a3c423de2a8b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def host_passes(self, host_state, container):"},{"line_number":29,"context_line":"        if not container.labels:"},{"line_number":30,"context_line":"            return True"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        for key in container.labels:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf091321_350afcd1","line":29,"range":{"start_line":29,"start_character":25,"end_line":29,"end_character":31},"in_reply_to":"ff0f0b1f_87221bb8","updated":"2017-06-12 07:07:41.000000000","message":"Done","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"f66614ab2ce162113039541aa70179c44bb2c708","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                          {\u0027host_state\u0027: host_state,"},{"line_number":39,"context_line":"                           \u0027key\u0027: key,"},{"line_number":40,"context_line":"                           \u0027value\u0027: container.labels.get(key),"},{"line_number":41,"context_line":"                           \u0027container\u0027: container})"},{"line_number":42,"context_line":"                return False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_31cded65","line":41,"range":{"start_line":41,"start_character":40,"end_line":41,"end_character":49},"updated":"2017-05-23 19:03:31.000000000","message":"nit: I think printing container.name is better.","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":8264,"name":"Shunli Zhou","username":"ShunliZhou"},"change_message_id":"f4fca1d40ccc5d3bedd3439b4672a3c423de2a8b","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                          {\u0027host_state\u0027: host_state,"},{"line_number":39,"context_line":"                           \u0027key\u0027: key,"},{"line_number":40,"context_line":"                           \u0027value\u0027: container.labels.get(key),"},{"line_number":41,"context_line":"                           \u0027container\u0027: container})"},{"line_number":42,"context_line":"                return False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf091321_550570c1","line":41,"range":{"start_line":41,"start_character":40,"end_line":41,"end_character":49},"in_reply_to":"ff0f0b1f_31cded65","updated":"2017-06-12 07:07:41.000000000","message":"Done","commit_id":"e75a807ae4fad4b5d11cb9679c61658af5f95814"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"d7b096c24ae1642c1ae46398fd357bbc4d7d330e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def host_passes(self, host_state, container, extra_spec):"},{"line_number":30,"context_line":"        labels_str \u003d extra_spec.get(\u0027labels\u0027, {})"},{"line_number":31,"context_line":"        labels \u003d jsonutils.loads(labels_str)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        if not labels:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f231b9d_9f09b832","line":30,"range":{"start_line":30,"start_character":46,"end_line":30,"end_character":49},"updated":"2017-06-13 23:32:46.000000000","message":"I guess this cannot be loaded because it is not a string.","commit_id":"73a5de033908a61cb736907d75867aefc4174a9e"},{"author":{"_account_id":8264,"name":"Shunli Zhou","username":"ShunliZhou"},"change_message_id":"8ecdd77f5072dd94469625017d0d70607d054bbb","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    run_filter_once_per_request \u003d True"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def host_passes(self, host_state, container, extra_spec):"},{"line_number":30,"context_line":"        labels_str \u003d extra_spec.get(\u0027labels\u0027, {})"},{"line_number":31,"context_line":"        labels \u003d jsonutils.loads(labels_str)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        if not labels:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f231b9d_a40e9c38","line":30,"range":{"start_line":30,"start_character":46,"end_line":30,"end_character":49},"in_reply_to":"7f231b9d_9f09b832","updated":"2017-06-14 07:09:00.000000000","message":"Done","commit_id":"73a5de033908a61cb736907d75867aefc4174a9e"}]}
