commenting out map xml generation code
@@ -1142,7 +1142,7 @@ class AbstractLogicalFile(models.Model):
# create and copy the map and metadata xml documents for the aggregation
meta_from_file_name = os.path.join(tmpdir, 'metadata.xml')
- map_from_file_name = os.path.join(tmpdir, 'map.xml')
+ # map_from_file_name = os.path.join(tmpdir, 'map.xml')
try:
with open(meta_from_file_name, 'w') as out:
out.write(self.metadata.get_xml())
@@ -1150,11 +1150,11 @@ class AbstractLogicalFile(models.Model):
istorage.saveFile(meta_from_file_name, to_file_name, True)
log.info("Aggregation metadata xml file:{} created".format(to_file_name))
- with open(map_from_file_name, 'w') as out:
- out.write(self._generate_map_xml())
- to_file_name = self.map_file_path
- istorage.saveFile(map_from_file_name, to_file_name, True)
- log.info("Aggregation map xml file:{} created".format(to_file_name))
+ # with open(map_from_file_name, 'w') as out:
+ # out.write(self._generate_map_xml())
+ # to_file_name = self.map_file_path
+ # istorage.saveFile(map_from_file_name, to_file_name, True)
+ # log.info("Aggregation map xml file:{} created".format(to_file_name))
except Exception as ex:
log.error("Failed to create aggregation metadata xml file. Error:{}".format(ex.message))
raise ex
