Message ID | 1244433717-3391-2-git-send-email-lmr@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, 2009-06-08 at 01:01 -0300, Lucas Meneghel Rodrigues wrote: > fix modifies kvm_config.split_and_strip so it will only split once per > line. Applied. > example: kernel_args = "ks=floppy console=ttyS0 noacpi" > > Signed-off-by: David Huff <dhuff@redhat.com> > --- > client/tests/kvm/kvm_config.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py > index 8b6ab15..40f16f1 100755 > --- a/client/tests/kvm/kvm_config.py > +++ b/client/tests/kvm/kvm_config.py > @@ -136,7 +136,7 @@ class config: > @param str: String that will be processed > @param sep: Separator that will be used to split the string > """ > - 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("\"\'")
diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py index 8b6ab15..40f16f1 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -136,7 +136,7 @@ class config: @param str: String that will be processed @param sep: Separator that will be used to split the string """ - 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("\"\'")
fix modifies kvm_config.split_and_strip so it will only split once per line. example: kernel_args = "ks=floppy console=ttyS0 noacpi" Signed-off-by: David Huff <dhuff@redhat.com> --- client/tests/kvm/kvm_config.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)