Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Andrei-Stepanov/099f3ec99d45b8d371742566e7ddc9d4 to your computer and use it in GitHub Desktop.
Save Andrei-Stepanov/099f3ec99d45b8d371742566e7ddc9d4 to your computer and use it in GitHub Desktop.
diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py
index 64a8221..44aafeb 100644
--- a/virttest/qemu_vm.py
+++ b/virttest/qemu_vm.py
@@ -992,6 +992,8 @@ class VM(virt_vm.BaseVM):
spice_opts.append(opt_string % tmp)
elif fallback:
spice_opts.append(fallback)
+ else:
+ spice_opts.pop(key, None)
s_port = str(utils_misc.find_free_port(*port_range))
if optget("spice_port") == "generate":
if not self.is_alive():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment