From d4ba2fccb87385c4f1e422b2ddd30ac4544477dc Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:44:06 +0000 Subject: [PATCH] Fix AttributeError: 'Authorization' object has no attribute 'log' --- cylc/uiserver/app.py | 2 +- cylc/uiserver/authorise.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cylc/uiserver/app.py b/cylc/uiserver/app.py index 46abeab4..ef30fff9 100644 --- a/cylc/uiserver/app.py +++ b/cylc/uiserver/app.py @@ -590,7 +590,7 @@ def set_auth(self) -> Authorization: getpass.getuser(), user_auth, site_auth, - self.log, + log=self.log, ) def initialize_templates(self): diff --git a/cylc/uiserver/authorise.py b/cylc/uiserver/authorise.py index c45a1df5..9333c845 100644 --- a/cylc/uiserver/authorise.py +++ b/cylc/uiserver/authorise.py @@ -165,12 +165,12 @@ def __init__( log, ): self.owner_user_name: str = owner_user_name - self.owner_user_groups: List[str] = self._get_groups( - self.owner_user_name - ) self.log = log self.owner_auth_conf: dict = owner_auth_conf self.site_auth_config: dict = site_auth_conf + self.owner_user_groups: List[str] = self._get_groups( + self.owner_user_name + ) self.owner_dict = self.build_owner_site_auth_conf() # lru_cache this method - see flake8-bugbear B019