report: fix setting config loaded callback on configure

This commit is contained in:
Benjamin Renard 2023-12-14 17:11:22 +01:00
parent 98bb0d8d0f
commit 1276d587a4
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -40,6 +40,7 @@ class Report(ConfigurableObject): # pylint: disable=useless-object-inheritance
"""Configure options on registered mylib.Config object"""
section = super().configure(
just_try_help=kwargs.pop("just_try_help", "Just-try mode: do not really send report"),
loaded_callback=self.initialize,
**kwargs,
)