You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
watolib: pass the page context into WatoMode constructors
WatoMode.__init__ now takes the PageContext alongside the edition and
stores it as self._ctx, making the request's config and request objects
an explicit constructor dependency rather than implicit reads of the
global proxies. The page handler and every mode construction site thread
the context through; modes with custom constructors (key management,
simple config modes, backup, OTel, DCD, ...) forward it to
super().__init__.
The base mode stays generic and does not depend on the folder tree: modes
that need the tree keep building it themselves.
The two Setup search match-item generators that build a mode outside a
page request construct a PageContext from active_config at call time.
CMK-35767
Change-Id: I5950c99c8b213fab8a4d11e3a35c6543d9530d60
0 commit comments