Skip to content

Commit

Permalink
Merge pull request #3 from YellowTech/main
Browse files Browse the repository at this point in the history
Fix export_mappings, return XML files instead of closed zip files
  • Loading branch information
lenggi committed Mar 26, 2024
2 parents ee9cd16 + 7144c5a commit 882cd72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def export_mappings(gw_session: GatewaySession,
if res.status_code == 200:
with ZipFile(BytesIO(res.content)) as zip_file:
with zip_file.open("alec_table.xml", "r") as mapping_xml:
mapping_xmls.append(mapping_xml)
mapping_xmls.append(mapping_xml.read())
else:
logging.info("Mapping with ID %s was not found on Airlock Host",
mapping_id)
Expand Down

0 comments on commit 882cd72

Please sign in to comment.