)]}'
{"tacker/tosca/actions.py":[{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"@log.log"},{"line_number":28,"context_line":"def updateimports(template):"},{"line_number":29,"context_line":"    path \u003d os.path.dirname(os.path.abspath(__file__)) + \u0027/lib/\u0027"},{"line_number":30,"context_line":"    defsfile \u003d path + \u0027tacker_defs.yaml\u0027"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_f2baddbe","line":28,"updated":"2016-05-17 18:54:52.000000000","message":"underscore is preferable","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"@log.log"},{"line_number":28,"context_line":"def updateimports(template):"},{"line_number":29,"context_line":"    path \u003d os.path.dirname(os.path.abspath(__file__)) + \u0027/lib/\u0027"},{"line_number":30,"context_line":"    defsfile \u003d path + \u0027tacker_defs.yaml\u0027"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_e97aebef","line":28,"in_reply_to":"dab17558_f2baddbe","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"@log.log"},{"line_number":28,"context_line":"def updateimports(template):"},{"line_number":29,"context_line":"    path \u003d os.path.dirname(os.path.abspath(__file__)) + \u0027/lib/\u0027"},{"line_number":30,"context_line":"    defsfile \u003d path + \u0027tacker_defs.yaml\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    if \u0027imports\u0027 in template:"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_b2bdf5b2","line":29,"range":{"start_line":29,"start_character":11,"end_line":29,"end_character":63},"updated":"2016-05-17 18:54:52.000000000","message":"os.path.join is better solution","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"@log.log"},{"line_number":28,"context_line":"def updateimports(template):"},{"line_number":29,"context_line":"    path \u003d os.path.dirname(os.path.abspath(__file__)) + \u0027/lib/\u0027"},{"line_number":30,"context_line":"    defsfile \u003d path + \u0027tacker_defs.yaml\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    if \u0027imports\u0027 in template:"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_298193c3","line":29,"range":{"start_line":29,"start_character":11,"end_line":29,"end_character":63},"in_reply_to":"dab17558_b2bdf5b2","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    if \u0027nfv\u0027 in template[\u0027tosca_definitions_version\u0027]:"},{"line_number":38,"context_line":"        nfvfile \u003d path + \u0027tacker_nfv_defs.yaml\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        template[\u0027imports\u0027].append(nfvfile)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    LOG.debug(_(\"%s\"), path)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_b2d4d5e8","line":39,"updated":"2016-05-17 18:54:52.000000000","message":"redundant line?","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    if \u0027nfv\u0027 in template[\u0027tosca_definitions_version\u0027]:"},{"line_number":38,"context_line":"        nfvfile \u003d path + \u0027tacker_nfv_defs.yaml\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        template[\u0027imports\u0027].append(nfvfile)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    LOG.debug(_(\"%s\"), path)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_696f1b2b","line":39,"in_reply_to":"dab17558_b2d4d5e8","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        template[\u0027imports\u0027].append(nfvfile)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    LOG.debug(_(\"%s\"), path)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_122de1fd","line":42,"range":{"start_line":42,"start_character":14,"end_line":42,"end_character":21},"updated":"2016-05-17 18:54:52.000000000","message":"debug message should not be translated","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        template[\u0027imports\u0027].append(nfvfile)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    LOG.debug(_(\"%s\"), path)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_496a171b","line":42,"range":{"start_line":42,"start_character":14,"end_line":42,"end_character":21},"in_reply_to":"dab17558_122de1fd","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"}],"tacker/tosca/heat_actions.py":[{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":14,"context_line":"from six import iteritems"},{"line_number":15,"context_line":"from toscaparser.utils import yamlparser"},{"line_number":16,"context_line":"from translator.hot.tosca_translator import TOSCATranslator"},{"line_number":17,"context_line":"import yaml"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from tacker.common import log"},{"line_number":20,"context_line":"from tacker.openstack.common import log as logging"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_725b8d54","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":11},"updated":"2016-05-17 18:54:52.000000000","message":"please re-order imports","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":14,"context_line":"from six import iteritems"},{"line_number":15,"context_line":"from toscaparser.utils import yamlparser"},{"line_number":16,"context_line":"from translator.hot.tosca_translator import TOSCATranslator"},{"line_number":17,"context_line":"import yaml"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from tacker.common import log"},{"line_number":20,"context_line":"from tacker.openstack.common import log as logging"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_ac1bd171","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":11},"in_reply_to":"dab17558_725b8d54","updated":"2016-05-19 21:42:14.000000000","message":"not sure what you mean here? they are in order unless i\u0027m missing something.","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    except Exception as e:"},{"line_number":37,"context_line":"        LOG.debug(\"heat-translator error: %s\", str(e))"},{"line_number":38,"context_line":"        raise exceptions.HeatTranslatorFailed(error_msg_details\u003dstr(e))"},{"line_number":39,"context_line":"    return heat_template_yaml"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_b2285598","line":39,"updated":"2016-05-17 18:54:52.000000000","message":"better to do return within try:except block","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    except Exception as e:"},{"line_number":37,"context_line":"        LOG.debug(\"heat-translator error: %s\", str(e))"},{"line_number":38,"context_line":"        raise exceptions.HeatTranslatorFailed(error_msg_details\u003dstr(e))"},{"line_number":39,"context_line":"    return heat_template_yaml"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_e9ef8b84","line":39,"in_reply_to":"dab17558_b2285598","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":43,"context_line":"def post_process_heat_template(heat_tpl, mgmt_ports, res_tpl,"},{"line_number":44,"context_line":"                               unsupported_res_prop\u003dNone):"},{"line_number":45,"context_line":"    heat_dict \u003d yamlparser.simple_ordered_parse(heat_tpl)"},{"line_number":46,"context_line":"    for outputname, portname in mgmt_ports.items():"},{"line_number":47,"context_line":"        ipval \u003d {\u0027get_attr\u0027: [portname, \u0027fixed_ips\u0027, 0, \u0027ip_address\u0027]}"},{"line_number":48,"context_line":"        output \u003d {outputname: {\u0027value\u0027: ipval}}"},{"line_number":49,"context_line":"        if \u0027outputs\u0027 in heat_dict:"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_8d437041","line":46,"range":{"start_line":46,"start_character":32,"end_line":46,"end_character":50},"updated":"2016-05-17 18:54:52.000000000","message":"it is not quite good idea to use lists here, better to use viewitems() method since it returns a generator.","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":43,"context_line":"def post_process_heat_template(heat_tpl, mgmt_ports, res_tpl,"},{"line_number":44,"context_line":"                               unsupported_res_prop\u003dNone):"},{"line_number":45,"context_line":"    heat_dict \u003d yamlparser.simple_ordered_parse(heat_tpl)"},{"line_number":46,"context_line":"    for outputname, portname in mgmt_ports.items():"},{"line_number":47,"context_line":"        ipval \u003d {\u0027get_attr\u0027: [portname, \u0027fixed_ips\u0027, 0, \u0027ip_address\u0027]}"},{"line_number":48,"context_line":"        output \u003d {outputname: {\u0027value\u0027: ipval}}"},{"line_number":49,"context_line":"        if \u0027outputs\u0027 in heat_dict:"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_89f51f52","line":46,"range":{"start_line":46,"start_character":32,"end_line":46,"end_character":50},"in_reply_to":"dab17558_8d437041","updated":"2016-05-19 21:42:14.000000000","message":"i understand your point, i would prefer to leave it the way it is keeping in mind of Python 3 support (which is exactly the same behavior as views). Also, there is some extensive analysis done by the community to let list version be there (Python 2 implementation) as the performance impact is very very negligible. See [1]\n\n[1] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            heat_dict[\u0027outputs\u0027].update(output)"},{"line_number":51,"context_line":"        else:"},{"line_number":52,"context_line":"            heat_dict[\u0027outputs\u0027] \u003d output"},{"line_number":53,"context_line":"        LOG.debug(_(\u0027Added output for %s\u0027), outputname)"},{"line_number":54,"context_line":"    add_resources_tpl(heat_dict, res_tpl)"},{"line_number":55,"context_line":"    if unsupported_res_prop:"},{"line_number":56,"context_line":"        convert_unsupported_res_prop(heat_dict, unsupported_res_prop)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_6d656cdf","line":53,"range":{"start_line":53,"start_character":18,"end_line":53,"end_character":42},"updated":"2016-05-17 18:54:52.000000000","message":"it is not necessary to do a translation for debug messages","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            heat_dict[\u0027outputs\u0027].update(output)"},{"line_number":51,"context_line":"        else:"},{"line_number":52,"context_line":"            heat_dict[\u0027outputs\u0027] \u003d output"},{"line_number":53,"context_line":"        LOG.debug(_(\u0027Added output for %s\u0027), outputname)"},{"line_number":54,"context_line":"    add_resources_tpl(heat_dict, res_tpl)"},{"line_number":55,"context_line":"    if unsupported_res_prop:"},{"line_number":56,"context_line":"        convert_unsupported_res_prop(heat_dict, unsupported_res_prop)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_c999e720","line":53,"range":{"start_line":53,"start_character":18,"end_line":53,"end_character":42},"in_reply_to":"dab17558_6d656cdf","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    add_resources_tpl(heat_dict, res_tpl)"},{"line_number":55,"context_line":"    if unsupported_res_prop:"},{"line_number":56,"context_line":"        convert_unsupported_res_prop(heat_dict, unsupported_res_prop)"},{"line_number":57,"context_line":"    return yaml.dump(heat_dict)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_2da6c40e","line":57,"updated":"2016-05-17 18:54:52.000000000","message":"what about using safe dump?","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    add_resources_tpl(heat_dict, res_tpl)"},{"line_number":55,"context_line":"    if unsupported_res_prop:"},{"line_number":56,"context_line":"        convert_unsupported_res_prop(heat_dict, unsupported_res_prop)"},{"line_number":57,"context_line":"    return yaml.dump(heat_dict)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@log.log"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_ec903945","line":57,"in_reply_to":"dab17558_2da6c40e","updated":"2016-05-19 21:42:14.000000000","message":"i think it is beneficial to retain yaml.dump since we want yaml lib to parse complex python specific objects in tosca templates (with many new features coming in)","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@log.log"},{"line_number":61,"context_line":"def add_resources_tpl(heat_dict, hot_res_tpl):"},{"line_number":62,"context_line":"    for res, res_dict in iteritems(hot_res_tpl):"},{"line_number":63,"context_line":"        for vdu, vdu_dict in iteritems(res_dict):"},{"line_number":64,"context_line":"            res_name \u003d vdu + \"_\" + res"},{"line_number":65,"context_line":"            heat_dict[\"resources\"][res_name] \u003d {"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_ededdc25","line":62,"range":{"start_line":62,"start_character":25,"end_line":62,"end_character":47},"updated":"2016-05-17 18:54:52.000000000","message":"viewitems() instead","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@log.log"},{"line_number":61,"context_line":"def add_resources_tpl(heat_dict, hot_res_tpl):"},{"line_number":62,"context_line":"    for res, res_dict in iteritems(hot_res_tpl):"},{"line_number":63,"context_line":"        for vdu, vdu_dict in iteritems(res_dict):"},{"line_number":64,"context_line":"            res_name \u003d vdu + \"_\" + res"},{"line_number":65,"context_line":"            heat_dict[\"resources\"][res_name] \u003d {"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_f2b65487","line":62,"range":{"start_line":62,"start_character":25,"end_line":62,"end_character":47},"in_reply_to":"dab17558_ededdc25","updated":"2016-05-19 21:42:14.000000000","message":"i will instead change this to items() in line with my comment on L46","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":60,"context_line":"@log.log"},{"line_number":61,"context_line":"def add_resources_tpl(heat_dict, hot_res_tpl):"},{"line_number":62,"context_line":"    for res, res_dict in iteritems(hot_res_tpl):"},{"line_number":63,"context_line":"        for vdu, vdu_dict in iteritems(res_dict):"},{"line_number":64,"context_line":"            res_name \u003d vdu + \"_\" + res"},{"line_number":65,"context_line":"            heat_dict[\"resources\"][res_name] \u003d {"},{"line_number":66,"context_line":"                \"type\": HEAT_RESOURCE_MAP[res],"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_4df18800","line":63,"range":{"start_line":63,"start_character":29,"end_line":63,"end_character":48},"updated":"2016-05-17 18:54:52.000000000","message":"viewitems() instead","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":60,"context_line":"@log.log"},{"line_number":61,"context_line":"def add_resources_tpl(heat_dict, hot_res_tpl):"},{"line_number":62,"context_line":"    for res, res_dict in iteritems(hot_res_tpl):"},{"line_number":63,"context_line":"        for vdu, vdu_dict in iteritems(res_dict):"},{"line_number":64,"context_line":"            res_name \u003d vdu + \"_\" + res"},{"line_number":65,"context_line":"            heat_dict[\"resources\"][res_name] \u003d {"},{"line_number":66,"context_line":"                \"type\": HEAT_RESOURCE_MAP[res],"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_32ad7c31","line":63,"range":{"start_line":63,"start_character":29,"end_line":63,"end_character":48},"in_reply_to":"dab17558_4df18800","updated":"2016-05-19 21:42:14.000000000","message":"same as previous comment","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                \"properties\": {}"},{"line_number":68,"context_line":"            }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"            for prop, val in iteritems(vdu_dict):"},{"line_number":71,"context_line":"                heat_dict[\"resources\"][res_name][\"properties\"][prop] \u003d val"},{"line_number":72,"context_line":"            heat_dict[\"resources\"][vdu][\"properties\"][res] \u003d {"},{"line_number":73,"context_line":"                \"get_resource\": res_name"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_2df404ef","line":70,"range":{"start_line":70,"start_character":29,"end_line":70,"end_character":48},"updated":"2016-05-17 18:54:52.000000000","message":"viewitems() instead","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                \"properties\": {}"},{"line_number":68,"context_line":"            }"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"            for prop, val in iteritems(vdu_dict):"},{"line_number":71,"context_line":"                heat_dict[\"resources\"][res_name][\"properties\"][prop] \u003d val"},{"line_number":72,"context_line":"            heat_dict[\"resources\"][vdu][\"properties\"][res] \u003d {"},{"line_number":73,"context_line":"                \"get_resource\": res_name"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_72a38443","line":70,"range":{"start_line":70,"start_character":29,"end_line":70,"end_character":48},"in_reply_to":"dab17558_2df404ef","updated":"2016-05-19 21:42:14.000000000","message":"same as previous comment","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"}],"tacker/tosca/heat_utils.py":[{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        if nt.get_capabilities().get(\"nfv_compute\"):"},{"line_number":61,"context_line":"            flavor_dict[nt.name] \u003d {}"},{"line_number":62,"context_line":"            properties \u003d nt.get_capabilities()[\"nfv_compute\"].get_properties()"},{"line_number":63,"context_line":"            for prop, (hot_prop, default, unit) in \\"},{"line_number":64,"context_line":"                    iteritems(FLAVOR_PROPS):"},{"line_number":65,"context_line":"                hot_prop_val \u003d (properties[prop].value"},{"line_number":66,"context_line":"                    if properties.get(prop, None) else None)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_e6c85a24","line":63,"range":{"start_line":63,"start_character":51,"end_line":63,"end_character":52},"updated":"2016-05-17 18:54:52.000000000","message":"this is a bash-style legacy, please use different lines formatting.","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                hot_prop_val \u003d (properties[prop].value"},{"line_number":66,"context_line":"                    if properties.get(prop, None) else None)"},{"line_number":67,"context_line":"                if unit and hot_prop_val:"},{"line_number":68,"context_line":"                    hot_prop_val \u003d \\"},{"line_number":69,"context_line":"                        utils.change_memory_unit(hot_prop_val, unit)"},{"line_number":70,"context_line":"                flavor_dict[nt.name][hot_prop] \u003d \\"},{"line_number":71,"context_line":"                    hot_prop_val if hot_prop_val else default"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_26cf022a","line":68,"range":{"start_line":68,"start_character":35,"end_line":68,"end_character":36},"updated":"2016-05-17 18:54:52.000000000","message":"same","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                if unit and hot_prop_val:"},{"line_number":68,"context_line":"                    hot_prop_val \u003d \\"},{"line_number":69,"context_line":"                        utils.change_memory_unit(hot_prop_val, unit)"},{"line_number":70,"context_line":"                flavor_dict[nt.name][hot_prop] \u003d \\"},{"line_number":71,"context_line":"                    hot_prop_val if hot_prop_val else default"},{"line_number":72,"context_line":"            if any(p in properties for p in FLAVOR_EXTRA_SPECS_LIST):"},{"line_number":73,"context_line":"                flavor_dict[nt.name][\u0027extra_specs\u0027] \u003d {}"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_46d846ef","line":70,"range":{"start_line":70,"start_character":49,"end_line":70,"end_character":50},"updated":"2016-05-17 18:54:52.000000000","message":"same","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                      \u0027specified; numa_node definitions will be ignored and\u0027"},{"line_number":92,"context_line":"                      \u0027numa_node_count will be applied\u0027))"},{"line_number":93,"context_line":"    if \u0027numa_node_count\u0027 in properties:"},{"line_number":94,"context_line":"        es_dict[\u0027hw:numa_nodes\u0027] \u003d \\"},{"line_number":95,"context_line":"            properties[\u0027numa_node_count\u0027].value"},{"line_number":96,"context_line":"    if \u0027numa_nodes\u0027 in properties and \u0027numa_node_count\u0027 not in properties:"},{"line_number":97,"context_line":"        nodes_dict \u003d dict(properties[\u0027numa_nodes\u0027].value)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_46ffa633","line":94,"range":{"start_line":94,"start_character":35,"end_line":94,"end_character":36},"updated":"2016-05-17 18:54:52.000000000","message":"same","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":95,"context_line":"            properties[\u0027numa_node_count\u0027].value"},{"line_number":96,"context_line":"    if \u0027numa_nodes\u0027 in properties and \u0027numa_node_count\u0027 not in properties:"},{"line_number":97,"context_line":"        nodes_dict \u003d dict(properties[\u0027numa_nodes\u0027].value)"},{"line_number":98,"context_line":"        dval \u003d list(nodes_dict.values())"},{"line_number":99,"context_line":"        ncount \u003d 0"},{"line_number":100,"context_line":"        for ndict in dval:"},{"line_number":101,"context_line":"            invalid_input \u003d set(ndict.keys()) - {\u0027id\u0027, \u0027vcpus\u0027, \u0027mem_size\u0027}"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_266b82f2","line":98,"range":{"start_line":98,"start_character":8,"end_line":98,"end_character":40},"updated":"2016-05-17 18:54:52.000000000","message":"why do you need this?\ncompletely redundant since at line #100 you\u0027re iterating over it? In python 2.7 values() return a list, but in py3.x it return viewitems() type.\n\nso, please avoid explicit list definition","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":95,"context_line":"            properties[\u0027numa_node_count\u0027].value"},{"line_number":96,"context_line":"    if \u0027numa_nodes\u0027 in properties and \u0027numa_node_count\u0027 not in properties:"},{"line_number":97,"context_line":"        nodes_dict \u003d dict(properties[\u0027numa_nodes\u0027].value)"},{"line_number":98,"context_line":"        dval \u003d list(nodes_dict.values())"},{"line_number":99,"context_line":"        ncount \u003d 0"},{"line_number":100,"context_line":"        for ndict in dval:"},{"line_number":101,"context_line":"            invalid_input \u003d set(ndict.keys()) - {\u0027id\u0027, \u0027vcpus\u0027, \u0027mem_size\u0027}"}],"source_content_type":"text/x-python","patch_set":2,"id":"bab6814e_0c2ff6f6","line":98,"range":{"start_line":98,"start_character":8,"end_line":98,"end_character":40},"in_reply_to":"dab17558_266b82f2","updated":"2016-05-19 21:42:14.000000000","message":"agree, probably this was introduced as py2to3 compatibility support for semantics by the original author. will remove.","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"}],"tacker/tosca/utils.py":[{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    for nt in template.nodetemplates:"},{"line_number":70,"context_line":"        if nt.type_definition.is_derived_from(constants.TACKERVDU):"},{"line_number":71,"context_line":"            mon_policy \u003d nt.get_property_value(\u0027monitoring_policy\u0027) or \u0027noop\u0027"},{"line_number":72,"context_line":"            # mon_data \u003d {mon_policy[\u0027name\u0027]: {\u0027actions\u0027: {\u0027failure\u0027:"},{"line_number":73,"context_line":"            #                                              \u0027respawn\u0027}}}"},{"line_number":74,"context_line":"            if mon_policy !\u003d \u0027noop\u0027:"},{"line_number":75,"context_line":"                if \u0027parameters\u0027 in mon_policy:"},{"line_number":76,"context_line":"                    mon_policy[\u0027monitoring_params\u0027] \u003d mon_policy[\u0027parameters\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_291eb35e","line":73,"range":{"start_line":72,"start_character":1,"end_line":73,"end_character":24},"updated":"2016-05-17 18:54:52.000000000","message":"since it is commented, are you considering removing it?","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1962ea06032820a4538eb54b1f0d2d6df679eb94","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    for nt in template.nodetemplates:"},{"line_number":70,"context_line":"        if nt.type_definition.is_derived_from(constants.TACKERVDU):"},{"line_number":71,"context_line":"            mon_policy \u003d nt.get_property_value(\u0027monitoring_policy\u0027) or \u0027noop\u0027"},{"line_number":72,"context_line":"            # mon_data \u003d {mon_policy[\u0027name\u0027]: {\u0027actions\u0027: {\u0027failure\u0027:"},{"line_number":73,"context_line":"            #                                              \u0027respawn\u0027}}}"},{"line_number":74,"context_line":"            if mon_policy !\u003d \u0027noop\u0027:"},{"line_number":75,"context_line":"                if \u0027parameters\u0027 in mon_policy:"},{"line_number":76,"context_line":"                    mon_policy[\u0027monitoring_params\u0027] \u003d mon_policy[\u0027parameters\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"bab6814e_0816ff54","line":73,"range":{"start_line":72,"start_character":1,"end_line":73,"end_character":24},"in_reply_to":"dab17558_291eb35e","updated":"2016-05-19 21:42:14.000000000","message":"Done","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"},{"author":{"_account_id":18186,"name":"Denis Makogon","username":"denismakogon","inactive":true},"change_message_id":"373446e73701b74f921d48403244221f6dc8cf07","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                if \u0027parameters\u0027 in mon_policy:"},{"line_number":76,"context_line":"                    mon_policy[\u0027monitoring_params\u0027] \u003d mon_policy[\u0027parameters\u0027]"},{"line_number":77,"context_line":"                monitoring_dict[\u0027vdus\u0027][nt.name] \u003d {}"},{"line_number":78,"context_line":"                monitoring_dict[\u0027vdus\u0027][nt.name][mon_policy[\u0027name\u0027]] \u003d \\"},{"line_number":79,"context_line":"                    mon_policy"},{"line_number":80,"context_line":"    LOG.debug(_(\"%s\"), monitoring_dict)"},{"line_number":81,"context_line":"    return monitoring_dict"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_66274aca","line":78,"range":{"start_line":78,"start_character":71,"end_line":78,"end_character":72},"updated":"2016-05-17 18:54:52.000000000","message":"bash-style, please avoid it.","commit_id":"539349717f0d7f5e094e04f72582826cd625184b"}]}
