mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3029 from BigRoy/fix_validate_asset_docs
General: Fix validate asset docs plug-in filename and class name
This commit is contained in:
commit
2103a34d0e
1 changed files with 5 additions and 5 deletions
|
|
@ -2,8 +2,8 @@ import pyblish.api
|
|||
from openpype.pipeline import PublishValidationError
|
||||
|
||||
|
||||
class ValidateContainers(pyblish.api.InstancePlugin):
|
||||
"""Validate existence of asset asset documents on instances.
|
||||
class ValidateAssetDocs(pyblish.api.InstancePlugin):
|
||||
"""Validate existence of asset documents on instances.
|
||||
|
||||
Without asset document it is not possible to publish the instance.
|
||||
|
||||
|
|
@ -22,10 +22,10 @@ class ValidateContainers(pyblish.api.InstancePlugin):
|
|||
return
|
||||
|
||||
if instance.data.get("assetEntity"):
|
||||
self.log.info("Instance have set asset document in it's data.")
|
||||
self.log.info("Instance has set asset document in its data.")
|
||||
|
||||
else:
|
||||
raise PublishValidationError((
|
||||
"Instance \"{}\" don't have set asset"
|
||||
" document which is needed for publishing."
|
||||
"Instance \"{}\" doesn't have asset document "
|
||||
"set which is needed for publishing."
|
||||
).format(instance.data["name"]))
|
||||
Loading…
Add table
Add a link
Reference in a new issue