fixed wrong dict name for creation step
This commit is contained in:
parent
9cc09aafa1
commit
31c310c6e0
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user