Skip to content

Commit

Permalink
Refactored use of cls
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisp committed Nov 7, 2024
1 parent 675a335 commit 0a42400
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 @@ -85,7 +85,7 @@ def get_deadline_pools(
"""
endpoint = "{}/api/pools?NamesOnly=true".format(webservice_url)
return DeadlineAddon._get_deadline_info(
return cls._get_deadline_info(
endpoint, auth, log, item_type="pools")

@classmethod
Expand All @@ -111,7 +111,7 @@ def get_deadline_groups(
"""
endpoint = "{}/api/groups".format(webservice_url)
return DeadlineAddon._get_deadline_info(
return cls._get_deadline_info(
endpoint, auth, log, item_type="groups")

@classmethod
Expand All @@ -137,7 +137,7 @@ def get_deadline_limit_groups(
"""
endpoint = "{}/api/limitgroups?NamesOnly=true".format(webservice_url)
return DeadlineAddon._get_deadline_info(
return cls._get_deadline_info(
endpoint, auth, log, item_type="limitgroups")

@classmethod
Expand All @@ -163,7 +163,7 @@ def get_deadline_workers(
"""
endpoint = "{}/api/slaves?NamesOnly=true".format(webservice_url)
return DeadlineAddon._get_deadline_info(
return cls._get_deadline_info(
endpoint, auth, log, item_type="workers")

@classmethod
Expand Down

0 comments on commit 0a42400

Please sign in to comment.