fixed wrong dict name for creation step

This commit is contained in:
Mathieu Broillet 2023-06-12 22:04:22 +02:00
parent 9cc09aafa1
commit 31c310c6e0
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -74,14 +74,14 @@ def run_steps(lxc):
""" """
creation = lxc.get_creation() creation = lxc.get_creation()
creation_steps = creation["creation_steps"] creation_steps = creation["steps"]
for step in creation_steps: for step in creation_steps:
match step["type"]: match step["type"]:
# Support for scripts # Support for scripts
case "script": case "script":
lxc_commands_utils.run_script(step, lxc) lxc_commands_utils.run_script(lxc, step)
case "file_create": case "file_create":
lxc_commands_utils.create_file_in_lxc(lxc, step["path"], optional(step["permission"], 644)) lxc_commands_utils.create_file_in_lxc(lxc, step["path"], optional(step["permission"], 644))
case "file_copy": case "file_copy":