From: Michael Goldish Subject: [KVM-AUTOTEST PATCH 2/3] KVM test: kvm_config.py: process_content(): look for Op instead of str Date: Mon, 21 Feb 2011 12:18:45 +0200 Message-ID: <1298283526-21348-2-git-send-email-mgoldish@redhat.com> References: <1298283526-21348-1-git-send-email-mgoldish@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: In-Reply-To: <1298283526-21348-1-git-send-email-mgoldish@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Looking for str is a mistake because content should only contains Ops and Filters. This is a harmless bug but it should be fixed. Signed-off-by: Michael Goldish --- 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 e124e27..b6e089b 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -226,7 +226,7 @@ class Parser(object): # filters first. for t in content: filename, linenum, obj = t - if type(obj) is str: + if type(obj) is Op: new_content.append(t) continue elif type(obj) is OnlyFilter: -- 1.7.3.4