Skip to content

Commit

Permalink
add min_instance_version config key support
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Aug 6, 2024
1 parent 5a7912e commit a207f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,10 @@ def validate_instance_version(github_access_token: str, subapp_paths: List[str],
except Exception:
print(f"ERROR: Config file not found in subapp {subapp_name}")
raise
if "instance_version" not in config:
if "instance_version" not in config and "min_instance_version" not in config:
print(f"ERROR: instance_version key not found in {subapp_name}. This key must be provided, check out the docs: https://developer.supervisely.com/app-development/basics/app-json-config/config.json#instance_version")
raise RuntimeError(f"instance_version key not found in {subapp_name}")
instance_version = config["instance_version"]
instance_version = config.get("instance_version", config.get("min_instance_version"))
print(f"INFO: instance_version: {instance_version}")
if "docker_image" not in config:
print(f"ERROR: docker_image key not found in {subapp_name}. This key must be provided, check out the docs: https://developer.supervisely.com/app-development/basics/app-json-config/config.json#docker_image")
Expand Down

0 comments on commit a207f43

Please sign in to comment.