mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-2765 - add fallback to uuid for backward compatibility
This commit is contained in:
parent
9065530eef
commit
7b9ec117e7
2 changed files with 3 additions and 2 deletions
|
|
@ -247,7 +247,7 @@ def remove_instance(instance):
|
|||
if not stub:
|
||||
return
|
||||
|
||||
inst_id = instance.get("instance_id")
|
||||
inst_id = instance.get("instance_id") or instance.get("uuid") # legacy
|
||||
if not inst_id:
|
||||
log.warning("No instance identifier for {}".format(instance))
|
||||
return
|
||||
|
|
|
|||
|
|
@ -321,7 +321,8 @@ class AfterEffectsServerStub():
|
|||
cleaned_data = []
|
||||
|
||||
for instance in self.get_metadata():
|
||||
if instance.get("instance_id") != instance_id:
|
||||
inst_id = instance.get("instance_id") or instance.get("uuid")
|
||||
if inst_id != instance_id:
|
||||
cleaned_data.append(instance)
|
||||
|
||||
payload = json.dumps(cleaned_data, indent=4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue