20 lines
687 B
Diff
20 lines
687 B
Diff
|
Subject: cli: Fix OrderedDict mutated during iteration on python3
|
||
|
From: Cole Robinson crobinso@redhat.com Fri Oct 20 15:09:01 2017 -0400
|
||
|
Date: Fri Oct 20 16:13:04 2017 -0400:
|
||
|
Git: 91c0669cf621b199ece533ac756bd346900a1474
|
||
|
|
||
|
|
||
|
diff --git a/virtinst/cli.py b/virtinst/cli.py
|
||
|
index 1b86cad5..086aa0e0 100644
|
||
|
--- a/virtinst/cli.py
|
||
|
+++ b/virtinst/cli.py
|
||
|
@@ -1482,7 +1482,7 @@ class ParserCPU(VirtCLIParser):
|
||
|
|
||
|
def _parse(self, inst):
|
||
|
# Convert +feature, -feature into expected format
|
||
|
- for key, value in self.optdict.items():
|
||
|
+ for key, value in list(self.optdict.items()):
|
||
|
policy = None
|
||
|
if value or len(key) == 1:
|
||
|
continue
|