def range_data_merge(main_data, added_data):
  """
  Take main data and then use the added data to merge in and override existing
  keys
  """
  for cluster in main_data:
    if cluster in added_data:
      main_data[cluster].update(added_data[cluster])

  for cluster in added_data:
    if cluster not in main_data:
      main_data[cluster] = added_data[cluster]

  return main_data