summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-12-24 09:57:28 +0200
committerLars Wirzenius <liw@liw.fi>2023-12-24 09:57:28 +0200
commitb7819a72de37b3617ff4e6ad0b04dd1b8f76812c (patch)
tree600b8c43df398dc9b3d1093d4856e7a076f85ebf
parent4f8d528d564b7f90718ed6f43ed35c54e1d2128a (diff)
downloadambient-build-vm-b7819a72de37b3617ff4e6ad0b04dd1b8f76812c.tar.gz
fix: deal with no playbooks given
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rwxr-xr-xambient-build-vm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ambient-build-vm b/ambient-build-vm
index 3eeec39..c233437 100755
--- a/ambient-build-vm
+++ b/ambient-build-vm
@@ -85,7 +85,7 @@ def prepare_build_files(tmp, args):
if "debootstrap" in step:
step["debootstrap"] = args.debian
- for playbook in args.playbook:
+ for playbook in args.playbook or []:
vmdb["steps"].append(
{
# note: the value MUST be the root file system tag in the VMDB file