From 476ddf1cd55a9387befd0c64be9873e80ce9ec8b Mon Sep 17 00:00:00 2001 From: Ben Barton Date: Fri, 12 Feb 2021 15:12:50 -0900 Subject: [PATCH] PR-2716 Not truncating the filename for the value that goes into product/key --- workflows/palsar/lambdas/jaxa_md_to_asf_md.py | 2 +- workflows/palsar/lambdas/palsar_22_md/get_md.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/workflows/palsar/lambdas/jaxa_md_to_asf_md.py b/workflows/palsar/lambdas/jaxa_md_to_asf_md.py index d1cff9df..356dac50 100644 --- a/workflows/palsar/lambdas/jaxa_md_to_asf_md.py +++ b/workflows/palsar/lambdas/jaxa_md_to_asf_md.py @@ -10,7 +10,7 @@ def do_task(event, context): returndict = event['input']['payload'] - md22 = get_md_from_strings(event['input']['meta']['Files']['L22'][:-4], + md22 = get_md_from_strings(event['input']['meta']['Files']['L22'], event['input']['payload']['summarytxt'], event['input']['payload']['kmlfile'], os.getenv('DISTRIBUTION_HOST'), diff --git a/workflows/palsar/lambdas/palsar_22_md/get_md.py b/workflows/palsar/lambdas/palsar_22_md/get_md.py index 3de53d40..bc957ca9 100644 --- a/workflows/palsar/lambdas/palsar_22_md/get_md.py +++ b/workflows/palsar/lambdas/palsar_22_md/get_md.py @@ -70,7 +70,7 @@ def convert_22_to_11_asfmd(mdin: dict, filename: str) -> dict: md['attr']['processing_description'] = get_processing_lvl_desc(lvl) md['collection']['processing_level'] = lvl md['product']['processing_type'] = lvl - md['product']['key'] = filename[:-4] + md['product']['key'] = filename return md