Skip to content

Commit

Permalink
fix: use operating_system
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Oct 25, 2022
1 parent 2d5248b commit 062e7f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magnum_cluster_api/cmd/image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
default="v0.1.13",
help="Image builder tag (or commit) to use for building image",
)
def main(version, image_builder_version):
def main(operating_system, version, image_builder_version):
ib_path = f"/tmp/image-builder-{image_builder_version}"
output = f"ubuntu-2004-kube-v{version}"
output = f"{operating_system}-kube-v{version}"

target = f"{ib_path}/images/capi/output/{output}/{output}"
if os.path.exists(target):
Expand Down Expand Up @@ -111,7 +111,7 @@ def main(version, image_builder_version):
/usr/bin/make \
-C \
{ib_path}/images/capi \
build-qemu-ubuntu-2004
build-qemu-{operating_system}
"""
).encode("utf-8"),
env={
Expand Down

0 comments on commit 062e7f3

Please sign in to comment.