add deprecation warnings for exec.final and metadata.bypost

This commit is contained in:
Mike Fährmann
2020-12-12 16:58:23 +01:00
parent 1e59aa6123
commit b6f1fe59cb
2 changed files with 8 additions and 0 deletions

View File

@@ -41,6 +41,10 @@ class ExecPP(PostProcessor):
events = options.get("event")
if events is None:
events = ("after",)
if options.get("final"):
self.log.warning("'final' is deprecated, "
"use '\"event\": \"finalize\"' instead")
events = ("finalize",)
elif isinstance(events, str):
events = events.split(",")
for event in events: