list/http_post: typing

This commit is contained in:
Iain Learmonth 2022-11-09 15:15:50 +00:00
parent d5824aa518
commit 890ce3077f

View file

@ -1,3 +1,5 @@
from typing import List
from app.terraform.list import ListAutomation from app.terraform.list import ListAutomation
@ -6,7 +8,7 @@ class ListHttpPostAutomation(ListAutomation):
description = "Update mirror lists by HTTP POST" description = "Update mirror lists by HTTP POST"
provider = "http_post" provider = "http_post"
template_parameters = [] template_parameters: List[str] = []
template = """ template = """
terraform { terraform {
@ -19,7 +21,7 @@ class ListHttpPostAutomation(ListAutomation):
} }
{% for list in lists %} {% for list in lists %}
data "http" "post_{{ list.id }}" { data "http" "post_{{ list.id }}" {
url = "{{ list.container }}" url = "{{ list.container }}"
method = "POST" method = "POST"