)]}'
{"magnum/drivers/heat/k8s_fedora_template_def.py":[{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"55e47fa61df8e8e88664a3932d1d12f0bd059fb2","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        extra_params[\u0027boot_volume_type\u0027] \u003d boot_volume_type"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _set_az_list_for_multi_masters(self, context, cluster, extra_params):"},{"line_number":226,"context_line":"        master_count \u003d cluster.master_count or 1"},{"line_number":227,"context_line":"        az_list \u003d cluster.labels.get(\"az_list_for_multi_masters\", [])"},{"line_number":228,"context_line":"        az \u003d cluster.labels.get(\"availability_zone\", \"\")"},{"line_number":229,"context_line":"        if az_list:"},{"line_number":230,"context_line":"            az_count \u003d len(az_list)"},{"line_number":231,"context_line":"            if az_count \u003e 0 and az_count \u003c master_count:"},{"line_number":232,"context_line":"                az_list \u003d [az_list[i % az_count] for i in range(master_count)]"},{"line_number":233,"context_line":"        else:"},{"line_number":234,"context_line":"            az_list \u003d [az for i in range(master_count)]"},{"line_number":235,"context_line":"        extra_params[\"az_list_for_multi_masters\"] \u003d az_list"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def get_env_files(self, cluster_template, cluster, nodegroup\u003dNone):"},{"line_number":238,"context_line":"        env_files \u003d []"}],"source_content_type":"text/x-python","patch_set":4,"id":"ff570b3c_36a05f90","line":235,"range":{"start_line":226,"start_character":0,"end_line":235,"end_character":59},"updated":"2020-05-20 13:59:40.000000000","message":"I have an optimization to propose here,\n\ninstead of passing a list and have an implicit mapping, we can have a dict with key the index of the master and value the AZ.\n\nFinally, this can be generic per nodegroup. i.e. slit the nodes between the given AZs.","commit_id":"3335113046f0167a14286b10586a729e7e352ab1"}]}
