Skip to content

Commit

Permalink
correct return value
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Feb 6, 2025
1 parent 308e312 commit fd4b51a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def resolve_app(versions: AppSpec, workunit_definition: WorkunitDefinition) -> A
app_version = workunit_definition.execution.raw_parameters["application_version"]
# TODO graceful handling of invalid versions
if app_version in versions and versions[app_version] is not None:
return app_version
return versions[app_version]
else:
msg = (
f"application_version '{app_version}' is not defined in the app spec,\n"
Expand Down

0 comments on commit fd4b51a

Please sign in to comment.