Skip to content

Commit

Permalink
ksushy: overrides image name with redfish_iso metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Dec 28, 2023
1 parent 6788a2e commit 4825832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/ksushy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def virtualmedia_insert(client, name):
return msg
try:
pprint(f"Setting iso of vm {name} to {image}")
iso = os.path.basename(image)
iso = config.k.info(name).get('redfish_iso') or os.path.basename(image)
token_iso = os.path.basename(image).split('?')[0]
if token_iso != iso:
iso = f"boot-{token_iso}.iso"
Expand Down

0 comments on commit 4825832

Please sign in to comment.