[dpdk-dev] [PATCH] usertools/pmdinfo: fix plugin auto scan

Thomas Monjalon thomas at monjalon.net
Mon Oct 25 17:10:43 CEST 2021


20/10/2021 21:31, Robin Jarry:
> 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 <module>
> >     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 at dpdk.org
> > 
> > Signed-off-by: David Marchand <david.marchand at redhat.com>
> 
> 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 <robin.jarry at 6wind.com>

Applied, thanks.





More information about the dev mailing list