Skip to content

Commit

Permalink
virsh.py: update undefine() function to cover ovmf guest
Browse files Browse the repository at this point in the history
Signed-off-by: Meina Li <[email protected]>
  • Loading branch information
meinaLi committed May 17, 2022
1 parent 6394d23 commit 50ff76b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spell.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ neighbours
Netperf
nohup
numatune
ovmf
passfd
pc
postprocess
Expand All @@ -419,6 +420,7 @@ scp
smp
srv
subprocess
seabios
tmpdir
traceback
umount
Expand Down
4 changes: 3 additions & 1 deletion virttest/virsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,9 @@ def undefine(name, options=None, **dargs):
if options is not None:
cmd += " %s" % options

if platform.machine() == "aarch64":
# When the platform is aarch64 or x86_64, both seabios and ovmf
# guests will use --nvram option
if platform.machine() in ["aarch64", "x86_64"]:
if options is None or "--nvram" not in options:
cmd += " --nvram"

Expand Down

0 comments on commit 50ff76b

Please sign in to comment.