Skip to content

Commit

Permalink
Refactored access to deadline info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Nov 7, 2024
1 parent 0a42400 commit 403d577
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/ayon_deadline/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def get_pools_by_server_name(self, server_name: str) -> List[str]:
"""
pools = self._pools_by_server_name.get(server_name)
if pools is None:
dl_server_info = self.deadline_servers_info.get(server_name)
dl_server_info = self.deadline_servers_info[server_name]

auth = (dl_server_info["default_username"],
dl_server_info["default_password"])
Expand All @@ -233,7 +233,7 @@ def get_groups_by_server_name(self, server_name: str) -> List[str]:
"""
groups = self._groups_by_server_name.get(server_name)
if groups is None:
dl_server_info = self.deadline_servers_info.get(server_name)
dl_server_info = self.deadline_servers_info[server_name]

auth = (dl_server_info["default_username"],
dl_server_info["default_password"])
Expand All @@ -257,7 +257,7 @@ def get_limit_groups_by_server_name(self, server_name: str) -> List[str]:
"""
limit_groups = self._limit_groups_by_server_name.get(server_name)
if limit_groups is None:
dl_server_info = self.deadline_servers_info.get(server_name)
dl_server_info = self.deadline_servers_info[server_name]

auth = (dl_server_info["default_username"],
dl_server_info["default_password"])
Expand All @@ -281,7 +281,7 @@ def get_machines_by_server_nameserver(self, server_name: str) -> List[str]:
"""
machines = self._machines_by_server_name.get(server_name)
if machines is None:
dl_server_info = self.deadline_servers_info.get(server_name)
dl_server_info = self.deadline_servers_info[server_name]

auth = (dl_server_info["default_username"],
dl_server_info["default_password"])
Expand Down

0 comments on commit 403d577

Please sign in to comment.