summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-10 14:56:04 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-10 14:56:04 +0300
commitbba8e8809d05f809ef353568305d69214186dced (patch)
tree513ddbbb17a06ee3af85f9dc05eff1acee2fa208
parentac8934978dc5a9d69c08dc68ff0802a3c252cf65 (diff)
downloaddebian-ansible-bba8e8809d05f809ef353568305d69214186dced.tar.gz
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.
-rw-r--r--subplot/subplot.py2
1 files changed, 1 insertions, 1 deletions
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)