Fix bad ref in example scripts

This commit is contained in:
Joshua Boniface 2022-11-18 12:54:28 -05:00
parent 20d436a745
commit 8135426973
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ class VMBuilderScript(VMBuilder):
]
# We need to know our root disk for later GRUB-ing
root_disk = None
root_volume = None
for volume in volumes:
if volume["mountpoint"] == "/":
root_volume = volume

View File

@ -487,7 +487,7 @@ class VMBuilderScript(VMBuilder):
post_packages = ["cloud-init"]
# We need to know our root disk for later GRUB-ing
root_disk = None
root_volume = None
for volume in volumes:
if volume["mountpoint"] == "/":
root_volume = volume