)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"afeb4222e6f942c62c615c6c480dcc7f61998be0","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2016-07-26 12:35:56 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"VNFD legacy template deprecation warning"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Partial-Bug: #1582928"},{"line_number":10,"context_line":"Change-Id: Ia8bed682c1724a7d0e4e6330fc99c6ff49f71388"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"bacf61ea_6f7de9e6","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":0},"updated":"2016-07-29 02:58:52.000000000","message":"It will be good to have commit body too.","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"4f2eaa4dcc62fd91d886d8116ef71b64b5a389fb","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2016-07-26 12:35:56 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"VNFD legacy template deprecation warning"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Partial-Bug: #1582928"},{"line_number":10,"context_line":"Change-Id: Ia8bed682c1724a7d0e4e6330fc99c6ff49f71388"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"bacf61ea_1a4e5e96","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":0},"in_reply_to":"bacf61ea_6f7de9e6","updated":"2016-08-03 06:46:47.000000000","message":"Done","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"}],"tackerclient/tacker/v1_0/vm/vnfd.py":[{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"f8b0db2ab6bac829a2fecfd2c11ca6761575988f","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if not vnfd.startswith(\"tosca_definitions_version\"):"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated.\")"},{"line_number":66,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":67,"context_line":"        if parsed_args.vnfd:"},{"line_number":68,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_75fa96be","line":65,"range":{"start_line":65,"start_character":20,"end_line":65,"end_character":66},"updated":"2016-06-30 05:07:11.000000000","message":"Can we check with more suitable condition?\nLike a tosca template started with some commented line will also be a valid tosca template, and above check will not be fine for that:\nEX:\n__________________________________\n|# This is a tosca template       |\n|tosca_definitions_version: nfv1_0|\n|                                 |\n|description: Demo example        |\n|                                 |\n|metadata:                        |\n|   ..                            |\n|   ..                            |\n|_________________________________|\n\n\nAdditionaly, Can we explain this message more? Something like:\n\n WARNING: Legacy templates are deprecated. Please use templates as in dir: tacker/samples/tosca-templates","commit_id":"5c2303f05100516f4ae867eef95562b0dda66516"},{"author":{"_account_id":18401,"name":"Luka Krajger","email":"luka.krajger@gmail.com","username":"KLuka"},"change_message_id":"8a4933ef2bae068e519a30f3259888aa64727904","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if not vnfd.startswith(\"tosca_definitions_version\"):"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated.\")"},{"line_number":66,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":67,"context_line":"        if parsed_args.vnfd:"},{"line_number":68,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_790a8227","line":65,"range":{"start_line":65,"start_character":20,"end_line":65,"end_character":66},"in_reply_to":"3aaa91ec_75fa96be","updated":"2016-06-30 11:19:48.000000000","message":"\u003e Can we check with more suitable condition?\n\nMaybe we can check that at least one line starts with \"tosca_definitions_version\"? Or maybe the actual template validation [1] can be used? But I am not sure how could this handle unvalid TOSCA files...\n\n[1] https://review.openstack.org/#/c/333853/\n\n\u003e Additionaly, Can we explain this message more? Something like:\n\u003e ...\n\nIMO using samples path in warning message is not good for users that don\u0027t know tacker-server source repository and are just using the tacker client.\n\nMaybe something like:\n\n  WARNING: Legacy templates are deprecated. Please use NFV TOSCA format.","commit_id":"5c2303f05100516f4ae867eef95562b0dda66516"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"7de35fe8eb0e3417f9e396d66ca1021f7b15cdf4","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if not vnfd.startswith(\"tosca_definitions_version\"):"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated.\")"},{"line_number":66,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":67,"context_line":"        if parsed_args.vnfd:"},{"line_number":68,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":2,"id":"1aa78d24_da4ea2c0","line":65,"range":{"start_line":65,"start_character":20,"end_line":65,"end_character":66},"in_reply_to":"3aaa91ec_790a8227","updated":"2016-07-04 04:39:07.000000000","message":"\u003e\u003eMaybe we can check that at least one line starts with tosca_definitions_version\"? \n\nIMO It should be fine.\n\n\u003e\u003eMaybe something like:\n\u003e\u003e\n\u003e\u003e  WARNING: Legacy templates are deprecated. Please use NFV TOSCA format.\n\nYes.","commit_id":"5c2303f05100516f4ae867eef95562b0dda66516"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"204468196cfe5b8fff314c572bb4dc4423032aae","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if \"tosca_definitions_version:\" not in vnfd:"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated. Please use \""},{"line_number":66,"context_line":"                          \"NFV TOSCA templates\")"},{"line_number":67,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":68,"context_line":"        if parsed_args.vnfd:"},{"line_number":69,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_027a57f1","line":66,"range":{"start_line":65,"start_character":27,"end_line":66,"end_character":46},"updated":"2016-07-05 03:57:32.000000000","message":"Kindly change as below, if you could see its better:\n\nLegacy format for VNFD is deprecated and please use TOSCA format.","commit_id":"fb6125ef495a1ed6802350f9a33a5894fe92bd91"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"17689ee6171ae6f68126bc892f3d98307e604c99","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if \"tosca_definitions_version:\" not in vnfd:"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated. Please use \""},{"line_number":66,"context_line":"                          \"NFV TOSCA templates\")"},{"line_number":67,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":68,"context_line":"        if parsed_args.vnfd:"},{"line_number":69,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_407297ae","line":66,"range":{"start_line":65,"start_character":27,"end_line":66,"end_character":46},"in_reply_to":"1aa78d24_027a57f1","updated":"2016-07-05 05:07:38.000000000","message":"IMO this is clearer message.","commit_id":"fb6125ef495a1ed6802350f9a33a5894fe92bd91"},{"author":{"_account_id":18401,"name":"Luka Krajger","email":"luka.krajger@gmail.com","username":"KLuka"},"change_message_id":"5d86fc241f215f344ba353f3826af98623aa03be","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            with open(parsed_args.vnfd_file) as f:"},{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if \"tosca_definitions_version:\" not in vnfd:"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated. Please use \""},{"line_number":66,"context_line":"                          \"NFV TOSCA templates\")"},{"line_number":67,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":68,"context_line":"        if parsed_args.vnfd:"},{"line_number":69,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_388a1bc0","line":66,"range":{"start_line":65,"start_character":27,"end_line":66,"end_character":46},"in_reply_to":"1aa78d24_407297ae","updated":"2016-07-05 07:46:54.000000000","message":"nit: please add dot at the end of sentence","commit_id":"fb6125ef495a1ed6802350f9a33a5894fe92bd91"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"62f31f0e2d259848574244f34f610ca2269e8d21","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                vnfd \u003d f.read()"},{"line_number":64,"context_line":"                if \"tosca_definitions_version:\" not in vnfd:"},{"line_number":65,"context_line":"                    print(\"VNFD legacy templates are deprecated. Please use \""},{"line_number":66,"context_line":"                          \"NFV TOSCA templates.\")"},{"line_number":67,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: vnfd}"},{"line_number":68,"context_line":"        if parsed_args.vnfd:"},{"line_number":69,"context_line":"                body[self.resource][\u0027attributes\u0027] \u003d {\u0027vnfd\u0027: parsed_args.vnfd}"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_89202cb2","line":66,"range":{"start_line":66,"start_character":31,"end_line":66,"end_character":36},"updated":"2016-07-25 06:58:51.000000000","message":"please do it at https://github.com/openstack/python-tackerclient/blob/master/tackerclient/v1_0/client.py#L379\n\nwhich is the client API.","commit_id":"d9b290b9472949e37805e3d6f75dc8d377cbaebc"}],"tackerclient/v1_0/client.py":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"d0420cbdc2c5df362fe625223eff53b4904d4987","unresolved":false,"context_lines":[{"line_number":380,"context_line":"        if body is not None:"},{"line_number":381,"context_line":"            if (\"tosca_definitions_version\" not in"},{"line_number":382,"context_line":"               body[\u0027vnfd\u0027][\u0027attributes\u0027][\u0027vnfd\u0027]):"},{"line_number":383,"context_line":"                print(\"VNFD legacy templates are deprecated. Please use \""},{"line_number":384,"context_line":"                      \"NFV TOSCA templates\")"},{"line_number":385,"context_line":"            body[self._VNFD][\u0027service_types\u0027] \u003d [{\u0027service_type\u0027: \u0027vnfd\u0027}]"},{"line_number":386,"context_line":"            body[self._VNFD][\u0027infra_driver\u0027] \u003d \u0027heat\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"dada55a8_45bc1dbb","line":383,"range":{"start_line":383,"start_character":16,"end_line":383,"end_character":21},"updated":"2016-07-26 07:10:54.000000000","message":"Is it possible to use _logger.warning?\nthanks","commit_id":"b5c67674c9e41e0e3ba4a426d7506139efb949c7"},{"author":{"_account_id":6348,"name":"xu-haiwei","email":"hai-xu@xr.jp.nec.com","username":"xu-haiwei"},"change_message_id":"751d96fa398ffbd1e59782364e85cc3f2e2fa674","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    def create_vnfd(self, body\u003dNone):"},{"line_number":380,"context_line":"        if body is not None:"},{"line_number":381,"context_line":"            if (\"tosca_definitions_version\" not in"},{"line_number":382,"context_line":"               body[\u0027vnfd\u0027][\u0027attributes\u0027][\u0027vnfd\u0027]):"},{"line_number":383,"context_line":"                _logger.warning(\"VNFD legacy templates are deprecated. Please \""},{"line_number":384,"context_line":"                                \"use NFV TOSCA templates.\")"},{"line_number":385,"context_line":"            body[self._VNFD][\u0027service_types\u0027] \u003d [{\u0027service_type\u0027: \u0027vnfd\u0027}]"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_13581256","line":382,"range":{"start_line":382,"start_character":14,"end_line":382,"end_character":19},"updated":"2016-08-03 00:59:52.000000000","message":"nit: since line385-387 are all using self._VNFD, can you keep the consistence here?","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"4f2eaa4dcc62fd91d886d8116ef71b64b5a389fb","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    def create_vnfd(self, body\u003dNone):"},{"line_number":380,"context_line":"        if body is not None:"},{"line_number":381,"context_line":"            if (\"tosca_definitions_version\" not in"},{"line_number":382,"context_line":"               body[\u0027vnfd\u0027][\u0027attributes\u0027][\u0027vnfd\u0027]):"},{"line_number":383,"context_line":"                _logger.warning(\"VNFD legacy templates are deprecated. Please \""},{"line_number":384,"context_line":"                                \"use NFV TOSCA templates.\")"},{"line_number":385,"context_line":"            body[self._VNFD][\u0027service_types\u0027] \u003d [{\u0027service_type\u0027: \u0027vnfd\u0027}]"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_3a49a28f","line":382,"range":{"start_line":382,"start_character":14,"end_line":382,"end_character":19},"in_reply_to":"bacf61ea_13581256","updated":"2016-08-03 06:46:47.000000000","message":"Done","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"aadf5d279e4fa78ecd29af10eab4ab4e4b5d6200","unresolved":false,"context_lines":[{"line_number":380,"context_line":"        if body is not None:"},{"line_number":381,"context_line":"            if (\"tosca_definitions_version\" not in"},{"line_number":382,"context_line":"               body[\u0027vnfd\u0027][\u0027attributes\u0027][\u0027vnfd\u0027]):"},{"line_number":383,"context_line":"                _logger.warning(\"VNFD legacy templates are deprecated. Please \""},{"line_number":384,"context_line":"                                \"use NFV TOSCA templates.\")"},{"line_number":385,"context_line":"            body[self._VNFD][\u0027service_types\u0027] \u003d [{\u0027service_type\u0027: \u0027vnfd\u0027}]"},{"line_number":386,"context_line":"            body[self._VNFD][\u0027infra_driver\u0027] \u003d \u0027heat\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_8b220ab8","line":383,"range":{"start_line":383,"start_character":31,"end_line":383,"end_character":33},"updated":"2016-07-28 07:34:50.000000000","message":"_()","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"a43cc3191b8c3d409de008653582ccb73aeb5744","unresolved":false,"context_lines":[{"line_number":380,"context_line":"        if body is not None:"},{"line_number":381,"context_line":"            if (\"tosca_definitions_version\" not in"},{"line_number":382,"context_line":"               body[\u0027vnfd\u0027][\u0027attributes\u0027][\u0027vnfd\u0027]):"},{"line_number":383,"context_line":"                _logger.warning(\"VNFD legacy templates are deprecated. Please \""},{"line_number":384,"context_line":"                                \"use NFV TOSCA templates.\")"},{"line_number":385,"context_line":"            body[self._VNFD][\u0027service_types\u0027] \u003d [{\u0027service_type\u0027: \u0027vnfd\u0027}]"},{"line_number":386,"context_line":"            body[self._VNFD][\u0027infra_driver\u0027] \u003d \u0027heat\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_2eba0ce2","line":383,"range":{"start_line":383,"start_character":31,"end_line":383,"end_character":33},"in_reply_to":"bacf61ea_8b220ab8","updated":"2016-07-28 07:46:15.000000000","message":"Other log lines (L174, L272) are in the similar manner and hence didnot include _().","commit_id":"df68c9831e94af9cdbc734cf61c9910d7281dfe0"}]}
