From daba0863240e0d0ad413461d9217e97862dcfa10 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 27 Jun 2022 16:13:47 -0400 Subject: [PATCH] [67] #919 Fix using -rm with .yml --- VERSION | 2 +- modules/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b775f619..13ef3052 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop66 +1.17.0-develop67 diff --git a/modules/config.py b/modules/config.py index ea3c176b..64d6792f 100644 --- a/modules/config.py +++ b/modules/config.py @@ -79,7 +79,7 @@ class ConfigFile: self.run_hour = datetime.strptime(attrs["time"], "%H:%M").hour self.requested_collections = util.get_list(attrs["collections"]) if "collections" in attrs else None self.requested_libraries = util.get_list(attrs["libraries"]) if "libraries" in attrs else None - self.requested_metadata_files = util.get_list(attrs["metadata_files"]) if "metadata_files" in attrs else None + self.requested_metadata_files = [mf[:-4] if str(mf).endswith(".yml") else mf for mf in util.get_list(attrs["metadata_files"])] if "metadata_files" in attrs else None self.resume_from = attrs["resume"] if "resume" in attrs else None self.collection_only = attrs["collection_only"] if "collection_only" in attrs else False self.operations_only = attrs["operations_only"] if "operations_only" in attrs else False