From 3ab246c7078fd47bd399c9f45edf76ee94b2f8aa Mon Sep 17 00:00:00 2001 From: Winston Olson-Duvall Date: Tue, 4 Jun 2024 08:48:45 -0700 Subject: [PATCH] Fix bad path --- daac_delivery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daac_delivery.py b/daac_delivery.py index db8dd77..4ae0378 100644 --- a/daac_delivery.py +++ b/daac_delivery.py @@ -183,7 +183,7 @@ def submit_cnm_notification(wm, granule_ur, paths, collection, collection_versio # Build notification dictionary utc_now = datetime.datetime.now(tz=datetime.timezone.utc) cnm_submission_id = f"{granule_ur}_{utc_now.strftime('%Y%m%dt%H%M%S')}" - cnm_submission_path = os.path.join(os.path.basename(paths[0]), cnm_submission_id + "_cnm.json") + cnm_submission_path = os.path.join(os.path.dirname(paths[0]), cnm_submission_id + "_cnm.json") # TODO: Use S3 provider? provider = wm.config["daac_provider_forward"] queue_url = wm.config["daac_submission_url_forward"]