Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix parameter type for fetching launch template number (#5078)

Staci Mullins8671d6e09bf8
diff --git a/catalog/dags/data_refresh/distributed_reindex.py b/catalog/dags/data_refresh/distributed_reindex.py
index 855f4e532..3d8f1ef7e 100644
--- a/catalog/dags/data_refresh/distributed_reindex.py
+++ b/catalog/dags/data_refresh/distributed_reindex.py
@@ -129,7 +129,7 @@ def get_launch_template_version_number(
raise AirflowSkipException("Skipping instance creation in local environment.")
launch_templates = ec2_hook.conn.describe_launch_templates(
- LaunchTemplateNames=INDEXER_LAUNCH_TEMPLATES.get(target_environment)
+ LaunchTemplateNames=[INDEXER_LAUNCH_TEMPLATES.get(target_environment)]
)
return launch_templates.get("LaunchTemplates")[0].get("LatestVersionNumber")