Commit 9119c693 authored by katharina.berger's avatar katharina.berger

fix

parent 183e0170
......@@ -255,7 +255,6 @@ def check_consistency_replcia(log, config, project, input_directory, output_dire
try:
index_nodes, master_solr_dict = get_list_of_shards(log, config, esgf_index_node_url)
index_node, data_node = query_for_facet(log, index_nodes, master_solr_dict, instance_id, ['index_node', 'data_node'])
dataset_id = '%s|%s' % (instance_id, data_node)
if index_node in master_solr_dict:
remote_slave_solr_url = 'http://esgf-data.dkrz.de:%s/solr' % master_solr_dict[index_node]
......@@ -274,7 +273,8 @@ def check_consistency_replcia(log, config, project, input_directory, output_dire
else: # copy mapfile
dirs = '/'.join(instance_id.split('.')[:-3])
fin_outpath = os.path.join(output_directory, dirs)
os.makedirs(fin_outpath, 0755)
if not os.path.exists(fin_outpath):
os.makedirs(fin_outpath, 0755)
ffp_source = os.path.join(root, f)
ffp_dest = os.path.join(fin_outpath, f)
shutil.copy(ffp_source, ffp_dest)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment