Skip to contentSkip to conversation

Fix to allow for "=" in the "value" of a config parameter.

PATCH New David Huff 1 participant 1 message May 21, 2009 KVM

lore
Share & tools
lore

David Huff

author
#0 lore raw

PATCH 1/1 Fix to allow for "=" in the "value" of a config parameter.

fix modifies kvm_config.split_and_strip so it will only split once per line.

example: kernel_args = "ks=floppy console=ttyS0 noacpi"

---
 client/tests/kvm_runtest_2/kvm_config.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm_runtest_2/kvm_config.py +1 -1
index 4a1e7b4..29a63b7 100755
@@ -94,7 +94,7 @@ class config:
 
     def split_and_strip(self, str, sep="="):
         """Split str and strip quotes from the resulting parts."""
-        temp = str.split(sep)
+        temp = str.split(sep,1)
         for i in range(len(temp)):
             temp[i] = temp[i].strip()
             temp[i] = temp[i].strip("\"\'")
Signature · 1 line
1.6.0.6