mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - should be context.data
This commit is contained in:
parent
9bfee3a404
commit
cc84e86f7f
7 changed files with 7 additions and 7 deletions
|
|
@ -68,7 +68,7 @@ class AfterEffectsSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline
|
|||
"OPENPYPE_LOG_NO_COLORS"
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if self._instance.context.get("deadlinePassMongoUrl"):
|
||||
if self._instance.context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
environment = dict({key: os.environ[key] for key in keys
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ class HarmonySubmitDeadline(
|
|||
"OPENPYPE_LOG_NO_COLORS"
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if self._instance.context.get("deadlinePassMongoUrl"):
|
||||
if self._instance.context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
environment = dict({key: os.environ[key] for key in keys
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class HoudiniSubmitPublishDeadline(pyblish.api.ContextPlugin):
|
|||
"AVALON_TOOLS",
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if context.get("deadlinePassMongoUrl"):
|
||||
if context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
environment = dict(
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ class HoudiniSubmitRenderDeadline(pyblish.api.InstancePlugin):
|
|||
"AVALON_TOOLS",
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if context.get("deadlinePassMongoUrl"):
|
||||
if context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
environment = dict({key: os.environ[key] for key in keys
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
"OPENPYPE_LOG_NO_COLORS"
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if instance.context.get("deadlinePassMongoUrl"):
|
||||
if instance.context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
environment = dict({key: os.environ[key] for key in keys
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
"FOUNDRY_LICENSE"
|
||||
]
|
||||
# Add mongo url if it's enabled
|
||||
if instance.context.get("deadlinePassMongoUrl"):
|
||||
if instance.context.data.get("deadlinePassMongoUrl"):
|
||||
keys.append("OPENPYPE_MONGO")
|
||||
|
||||
# add allowed keys from preset if any
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
environment["OPENPYPE_PUBLISH_JOB"] = "1"
|
||||
environment["OPENPYPE_RENDER_JOB"] = "0"
|
||||
# Add mongo url if it's enabled
|
||||
if instance.context.get("deadlinePassMongoUrl"):
|
||||
if instance.context.data.get("deadlinePassMongoUrl"):
|
||||
mongo_url = os.environ.get("OPENPYPE_MONGO")
|
||||
if mongo_url:
|
||||
environment["OPENPYPE_MONGO"] = mongo_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue