From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BDCA1A0C45 for ; Wed, 20 Oct 2021 21:31:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB7FC410F6; Wed, 20 Oct 2021 21:31:39 +0200 (CEST) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mails.dpdk.org (Postfix) with ESMTP id E023040150 for ; Wed, 20 Oct 2021 21:31:37 +0200 (CEST) Received: by mail-wr1-f41.google.com with SMTP id e3so96096wrc.11 for ; Wed, 20 Oct 2021 12:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=eESgzd7jHlKiCRpdWHDbKyawWwDNGwpo+409F+dj2i0=; b=Dd2DWtHfD5qt8Gl6dDMZvAeC8igJ5IPwVjcpvx4DsFZ9nvHmhYLEbejVZCkilZqZPv DvF4EPrx4No8KvsCaUtR9V4e9oMcFG7lIchS2EcnI3F7dkR6Qx62I7PrC3b2NQ9yxVji YzRwUJxWK5havSftXa5dgr8jwuBWBeMY9lYvl/BKuvYNt2UJBovt7KvUKp1Aq848557A vimHGsd5SRAWa3f0Nv1yWuV/EZFOM8VLe6TWSleGHAaIugCwnKq9h+XRisd+dCmILqhc AdxMR9xKet8GuLJXVRH/wJ0YVys1qIex6+jOrqBr0lR6sZf+gDpTQCQq8Z6XOWgAeHfJ QLQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eESgzd7jHlKiCRpdWHDbKyawWwDNGwpo+409F+dj2i0=; b=KgzLBoOf0RS8vKh+J/Tb8KX3QMz9/RhK6IA5+vApUdY/x611U14l3Ljqb84hFJseLp lBQrQPPGhuKKz6U8BvQuaNuFONImZd369yPmvVFrYu20octE930XCs0rfQzxa0mKL2+5 xf9mUI2cYbePzYEfEmmmZ/8iHwuJ35rLfP1V8CEmYVY3KrxHTN5YIR8f/1ak11juEJkz so3QeQXCUTvpRSAAuGUQrQScwBREjblpiz8caah3H/msoK4S2CsH0qXxIHo4R3fcR6eV Bk41mD4uPRtic1GLrBoQx5Z5Qk8AcoEGhrkR9UNHwWfQCtshW2GtHVJe54fNdK2YxNEM mTug== X-Gm-Message-State: AOAM532hUIS0+JAAAF1WCinpMbsMXCo6Y9C+z18gIkxJpyfTzEZm+lbV XfZ74Iu3YPZe29EHx1abcyeFAA== X-Google-Smtp-Source: ABdhPJzra1+U41yb8ooiEPSHf/zXh2NWQSkJ5n/bmkjUFGaLCAHpwe6JOSNpocMH9Wsi8yGtvpg5SQ== X-Received: by 2002:a05:6000:552:: with SMTP id b18mr1551912wrf.112.1634758297572; Wed, 20 Oct 2021 12:31:37 -0700 (PDT) Received: from 6wind.com (2a01cb000f483e003b320a5f125af7b5.ipv6.abo.wanadoo.fr. [2a01:cb00:f48:3e00:3b32:a5f:125a:f7b5]) by smtp.gmail.com with ESMTPSA id j1sm3155765wrd.28.2021.10.20.12.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 12:31:37 -0700 (PDT) Date: Wed, 20 Oct 2021 21:31:36 +0200 From: Robin Jarry To: David Marchand Cc: dev@dpdk.org, stable@dpdk.org, Neil Horman , Dmitry Kozlyuk , Stephen Hemminger , Bruce Richardson Message-ID: <20211020193136.6tkty3fcxg4fk2ck@6wind.com> References: <20211019125230.27480-1-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211019125230.27480-1-david.marchand@redhat.com> Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] usertools/pmdinfo: fix plugin auto scan X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hello, 2021-10-19, David Marchand: > Migration to argparse was incomplete. > > $ dpdk-pmdinfo.py -p $(which dpdk-testpmd) > Traceback (most recent call last): > File "/usr/bin/dpdk-pmdinfo.py", line 626, in > main() > File "/usr/bin/dpdk-pmdinfo.py", line 596, in main > exit(scan_for_autoload_pmds(args[0])) > TypeError: 'Namespace' object does not support indexing > > Fixes: 81255f27c65c ("usertools: replace optparse with argparse") > Cc: stable@dpdk.org > > Signed-off-by: David Marchand It is sad that pylint does not report an error: https://pycodequ.al/docs/pylint-messages/e1136-unsubscriptable-object.html Anyway, this fix looks good. Reviewed-by: Robin Jarry