Skip to content

Commit

Permalink
Ignore cloud based images in virt plugin for VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 committed Jan 24, 2025
1 parent 725387e commit 40be9dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/middlewared/middlewared/plugins/virt/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ async def image_choices(self, data):
async with session.get(url) as resp:
for v in (await resp.json())['products'].values():
alias = v['aliases'].split(',', 1)[0]
if v['requirements'].get('cdrom_agent'):
# We are adding this check to ignore such images because these are cloud images
# and require agent to be installed/configured which is obviously not going to
# happen
continue

if alias not in choices:
instance_types = set()
for i in v['versions'].values():
Expand Down

0 comments on commit 40be9dd

Please sign in to comment.