From 5168fe54d11d8c281b769af160bc36fb948fccdd Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Mon, 23 Sep 2024 17:00:42 +0300 Subject: [PATCH] access server info correctly --- .../plugins/publish/global/collect_default_deadline_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ayon_deadline/plugins/publish/global/collect_default_deadline_server.py b/client/ayon_deadline/plugins/publish/global/collect_default_deadline_server.py index 77d03c713f..879fa1753b 100644 --- a/client/ayon_deadline/plugins/publish/global/collect_default_deadline_server.py +++ b/client/ayon_deadline/plugins/publish/global/collect_default_deadline_server.py @@ -40,7 +40,8 @@ def process(self, context): if dl_server_info: deadline_url = dl_server_info["value"] else: - default_dl_server_info = deadline_addon.deadline_servers_info[0] + key = next(k for k in deadline_addon.deadline_servers_info.keys()) + default_dl_server_info = deadline_addon.deadline_servers_info[key] deadline_url = default_dl_server_info["value"] context.data["deadline"] = {}