Skip to content

Commit b9d332a

Browse files
committed
use jinja2
1 parent 8bfd5d6 commit b9d332a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

metablock/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from pathlib import Path
44

55
import click
6-
import yaml
76
import jinja2
7+
import yaml
88

99
from metablock import Metablock, __version__
1010
from metablock.utils import temp_zipfile
@@ -16,7 +16,7 @@
1616
METABLOCK_API_TOKEN = os.environ.get("METABLOCK_API_TOKEN", "")
1717

1818

19-
def manifest(file_path: Path, params: dict) -> dict:
19+
def manifest(file_path: Path, params: dict) -> str:
2020
env = jinja2.Environment()
2121
template = env.from_string(file_path.read_text())
2222
return template.render(**params)
@@ -54,7 +54,7 @@ def apply(path: str, space_name: str, token: str, dry_run: bool) -> None:
5454
path,
5555
space_name or METABLOCK_SPACE,
5656
token or METABLOCK_API_TOKEN,
57-
dry_run=dry_run
57+
dry_run=dry_run,
5858
)
5959
)
6060

0 commit comments

Comments
 (0)