removing redundant code

This commit is contained in:
Jakub Jezek 2022-11-25 17:49:09 +01:00
parent eb1b6e037b
commit 9f5e892a67
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -208,10 +208,6 @@ class CelactionSubmitDeadline(pyblish.api.InstancePlugin):
if instance.context.data.get("deadlinePassMongoUrl"):
keys.append("OPENPYPE_MONGO")
# add allowed keys from preset if any
if self.env_allowed_keys:
keys += self.env_allowed_keys
environment = dict({
key: os.environ[key] for key in keys
if key in os.environ}, **legacy_io.Session
@ -227,12 +223,6 @@ class CelactionSubmitDeadline(pyblish.api.InstancePlugin):
"OPENPYPE_RENDER_JOB": "1"
})
# finally search replace in values of any key
if self.env_search_replace_values:
for key, value in environment.items():
for _k, _v in self.env_search_replace_values.items():
environment[key] = value.replace(_k, _v)
payload["JobInfo"].update({
"EnvironmentKeyValue%d" % index: "{key}={value}".format(
key=key,