mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Simplified getting host and app filter acess.
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
3bda53a541
commit
36a43d4020
1 changed files with 2 additions and 7 deletions
|
|
@ -571,13 +571,8 @@ class EnvironmentTool:
|
|||
# Backwards compatibility 3.9.1 - 3.9.2
|
||||
# - 'variant_data' contained only environments but contain also host
|
||||
# and application variant filters
|
||||
host_names = []
|
||||
app_variants = []
|
||||
if "host_names" in variant_data:
|
||||
host_names = variant_data["host_names"]
|
||||
|
||||
if "app_variants" in variant_data:
|
||||
app_variants = variant_data["app_variants"]
|
||||
host_names = variant_data.get("host_names", [])
|
||||
app_variants = variant_data.get("app_variants", [])
|
||||
|
||||
if "environment" in variant_data:
|
||||
environment = variant_data["environment"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue