From 260657b757f47fc01fe026a7ea5e41b8191adf8f Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 17 Sep 2024 18:59:32 +0200 Subject: [PATCH] Avoid deprecated pydantic method. (#625) --- src/antsibull/cli/antsibull_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/antsibull/cli/antsibull_build.py b/src/antsibull/cli/antsibull_build.py index 3be47ff4..60efb0f9 100644 --- a/src/antsibull/cli/antsibull_build.py +++ b/src/antsibull/cli/antsibull_build.py @@ -854,7 +854,7 @@ def run(args: list[str]) -> int: with app_context.app_and_lib_context(context_data) as (app_ctx, dummy_): # TODO: Call `model_dump()` instead of deprecated `dict()` # once support for pydantic v1/antsibull-core v2 is dropped - twiggy.dict_config(app_ctx.logging_cfg.dict()) + twiggy.dict_config(app_ctx.logging_cfg.model_dump()) flog.debug("Set logging config") flog.fields(command=parsed_args.command).info("Action")