Use existing variable renderer

This commit is contained in:
Roy Nieterau 2022-08-29 19:55:24 +02:00
parent 4abddd027d
commit 6f5fcecfae

View file

@ -573,7 +573,7 @@ class MayaSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline):
# Renderman 22, and so if we are using renderman > 21 we need to set
# renderer string on the job to `renderman22`. We will have to change
# this when Deadline releases new version handling this.
if self._instance.data["renderer"] == "renderman":
if renderer == "renderman":
try:
from rfm2.config import cfg # noqa
except ImportError: