Created
June 29, 2017 13:37
-
-
Save Andrei-Stepanov/099f3ec99d45b8d371742566e7ddc9d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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