list/http_post: typing
This commit is contained in:
parent
d5824aa518
commit
890ce3077f
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue