From bba8e8809d05f809ef353568305d69214186dced Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 10 Oct 2020 14:56:04 +0300 Subject: fix(subplot/subplot.py): handle an unspecified vars file correctly Previously we created a file with a list, when it needs to be a dict. --- subplot/subplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subplot/subplot.py b/subplot/subplot.py index 1570d27..596e8dd 100644 --- a/subplot/subplot.py +++ b/subplot/subplot.py @@ -97,7 +97,7 @@ def run_playbook(ctx): if not os.path.exists("vars.yml"): with open("vars.yml", "w") as f: - yaml.safe_dump([], stream=f) + yaml.safe_dump({}, stream=f) playbook = [ctx["playbook"]] assert_ne(playbook, None) -- cgit v1.2.1