From 27f9615e760d21b1e47edb0c218050a9e113ea0c Mon Sep 17 00:00:00 2001 From: Victoria McDonald Date: Tue, 4 Jun 2024 14:08:03 -0700 Subject: [PATCH] debug input --- bignbit/save_cnm_message.py | 2 +- terraform/state_machine_definition.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bignbit/save_cnm_message.py b/bignbit/save_cnm_message.py index d1056cd..148eb62 100644 --- a/bignbit/save_cnm_message.py +++ b/bignbit/save_cnm_message.py @@ -39,7 +39,7 @@ def process(self): print(collection_name) print(granule_ur) - cnm_content = self.input['cnm'] + cnm_content = self.input['cma']['event']['cnm'] print(cnm_content) print(cnm_content) diff --git a/terraform/state_machine_definition.tpl b/terraform/state_machine_definition.tpl index 2f4d46e..580a08f 100644 --- a/terraform/state_machine_definition.tpl +++ b/terraform/state_machine_definition.tpl @@ -462,7 +462,7 @@ "granule_ur": "{$.granule_ur}", "pobit_audit_bucket": "${PobitAuditBucket}", "cumulus_message": { - "input": "{$.event}" + "input": "{$}" } } }