Skip to content

Commit

Permalink
Change defaults for proxy_crt
Browse files Browse the repository at this point in the history
Today we do not handle the case where a certificate file is provided
(because certificates are in fact being handled directly in the Qarnot
profile/payload). Hence we won't use a file path has a default for
`proxy_crt` to avoid confusion. For now, we will use a more sensible
default (we use "True" but it can be anything, as long as it is not empty
because that's what the payload expects)
  • Loading branch information
Maxim Doucet committed Jul 6, 2021
1 parent 661701a commit 565c795
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qarnot_render_deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def __init__(self, client_token, cluster_url="https://api.qarnot.com"):
self.license_mode = "Standard"
# Your Deadline Remote Connection Server (RCS) in the form "hostname:port"
self.repository = ""
self.proxy_crt = "/opt/Thinkbox/Deadline10RemoteClient.pfx"
# TODO: handle the case where a certificate file is provided
self.proxy_crt = "True"
self.proxy_ssl = "True"
######## CONFIGURATION #########################################################
self.deadline_prefix = "deadline"
Expand Down Expand Up @@ -187,7 +188,8 @@ def random_suffix(r):
task.constants["DEADLINE_SSL"] = self.proxy_ssl
task.constants["DEADLINE_LICENSE_MODE"] = self.license_mode
task.constants["DEADLINE_LICENSE_SERVER"] = self.license_server
task.constants["DEADLINE_CRT"] = "".join(self.proxy_crt.splitlines())
# TODO: handle the case where a certificate file is provided
task.constants["DEADLINE_CRT"] = self.proxy_crt

task.submit()

Expand Down

0 comments on commit 565c795

Please sign in to comment.