Skip to content

Commit

Permalink
Merge pull request #28 from itoffshore/logicbug
Browse files Browse the repository at this point in the history
add incus is required message
  • Loading branch information
itoffshore committed Feb 17, 2024
2 parents 20d4409 + 03b3fcf commit 046f1fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Binary file removed dist/distrobuilder_menu-0.2.8.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/distrobuilder_menu-0.2.9.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "hatchling.build"

[project]
name = "distrobuilder_menu"
version = "0.2.8"
version = "0.2.9"
authors = [
{ name="Stuart Cardall", email="developer@it-offshore.co.uk" },
]
Expand Down
7 changes: 6 additions & 1 deletion src/distrobuilder_menu/menus/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ def menu_versions(template, version_list, template_path):

# sanity checks
if len(menu_list) == 0:
utils.die(1, 'logic bug in menu_versions()')
client = utils.get_lxd_binary()

if client == 'lxc':
utils.die(1, f"\n{template} will only build with incus")
else:
utils.die(1, 'logic bug in menu_versions()')

# ARGS.lxd is usually true so check lxc
if ARGS.lxc:
Expand Down

0 comments on commit 046f1fa

Please sign in to comment.