Skip to content

Commit

Permalink
Avoid deprecated pydantic method. (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 17, 2024
1 parent 39d7b96 commit 260657b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/antsibull/cli/antsibull_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 260657b

Please sign in to comment.