From 8360e3f3a042e85431975ff61d003433cb8b5f24 Mon Sep 17 00:00:00 2001 From: Henrry Pulgarin <39854568+Henrrypg@users.noreply.github.com> Date: Fri, 14 Jul 2023 10:48:19 -0500 Subject: [PATCH] fix: conditional error when tutor version is up to 15.0.0 (#44) --- .../infrastructure/tutor_based_manifests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drydock/manifest_builder/infrastructure/tutor_based_manifests.py b/drydock/manifest_builder/infrastructure/tutor_based_manifests.py index 2fe2f418..d7470b4c 100644 --- a/drydock/manifest_builder/infrastructure/tutor_based_manifests.py +++ b/drydock/manifest_builder/infrastructure/tutor_based_manifests.py @@ -48,9 +48,9 @@ def _get_hook_context_app(self, app_name): """Get the hook context for the given app name.""" tutor_version = version.parse(tutor_env.__version__) - if tutor_version > version.parse("15"): - return hooks.Contexts.app(app_name) - return hooks.Contexts.APP(app_name) + if tutor_version < version.parse("16"): + return hooks.Contexts.APP(app_name) + return hooks.Contexts.app(app_name) def render(self, root: str, config: DrydockConfig) -> None: """Register drydock custom templates and render a tutor env."""