mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Replace '-' with none
Validator would complain about non-existent pool
This commit is contained in:
parent
39ea6b102b
commit
6f1400433d
1 changed files with 8 additions and 0 deletions
|
|
@ -36,12 +36,20 @@ class CollectDeadlinePools(pyblish.api.InstancePlugin,
|
|||
instance.data["primaryPool"] = (
|
||||
attr_values.get("primaryPool") or self.primary_pool or "none"
|
||||
)
|
||||
if instance.data["primaryPool"] == "-":
|
||||
instance.data["primaryPool"] = None
|
||||
|
||||
if not instance.data.get("secondaryPool"):
|
||||
instance.data["secondaryPool"] = (
|
||||
attr_values.get("secondaryPool") or self.secondary_pool or "none" # noqa
|
||||
)
|
||||
|
||||
if instance.data["secondaryPool"] == "-":
|
||||
instance.data["secondaryPool"] = None
|
||||
|
||||
self.log.info("prima::{}".format(instance.data["primaryPool"]))
|
||||
self.log.info("secondaryPool::{}".format(instance.data["secondaryPool"]))
|
||||
|
||||
@classmethod
|
||||
def get_attribute_defs(cls):
|
||||
# TODO: Preferably this would be an enum for the user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue