From 890ce3077fea4f01831f573409e3825e9692dda0 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Wed, 9 Nov 2022 15:15:50 +0000 Subject: [PATCH] list/http_post: typing --- app/terraform/list/http_post.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/terraform/list/http_post.py b/app/terraform/list/http_post.py index 4b0d12f..778de13 100644 --- a/app/terraform/list/http_post.py +++ b/app/terraform/list/http_post.py @@ -1,3 +1,5 @@ +from typing import List + from app.terraform.list import ListAutomation @@ -6,7 +8,7 @@ class ListHttpPostAutomation(ListAutomation): description = "Update mirror lists by HTTP POST" provider = "http_post" - template_parameters = [] + template_parameters: List[str] = [] template = """ terraform { @@ -19,7 +21,7 @@ class ListHttpPostAutomation(ListAutomation): } {% for list in lists %} - + data "http" "post_{{ list.id }}" { url = "{{ list.container }}" method = "POST"