Fix copy/paste error

6 jobs for iosxr_inventory in 1 minute and 42 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Lint
passed #40537
docker
flake8

00:00:12

passed #40541
docker
futurize

00:00:16

passed #40540
docker
pylint

00:00:19

failed #40539
docker allowed to fail
radon

00:00:16

failed #40538
docker allowed to fail
yapf

00:00:16

 
  Test
failed #40542
docker allowed to fail
test_noc

00:01:21

36.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 36%
Coverage Statements : 26260
Coverage Missing : 16765
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 477 matching files
./var/report: found 2 matching files
Uploading artifacts to coordinator... ok id=40542 responseStatus=201 Created token=iz8Sb7F9
ERROR: Job failed: exit code 2
failed
radon Lint
$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi
++ '[' '!' -z sa/profiles/Cisco/IOSXR/get_inventory.py ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B sa/profiles/Cisco/IOSXR/get_inventory.py
ERROR:xenon:block "sa/profiles/Cisco/IOSXR/get_inventory.py:54 get_type" has a rank of D
ERROR:xenon:block "sa/profiles/Cisco/IOSXR/get_inventory.py:15 Script" has a rank of C
ERROR:xenon:average complexity is ranked C
ERROR:xenon:module 'sa/profiles/Cisco/IOSXR/get_inventory.py' has a rank of C
ERROR: Job failed: exit code 1
failed
yapf Lint
-            ) and "module mau" not in name and not name.startswith("chassis")
- ):
+ elif (("LC" in descr or "Line Card" in descr or "Linecard" in descr or
+ "Interface Module" in descr) and "module mau" not in name and
+ not name.startswith("chassis")):
number = name.split()[1].split("/")[1]
return "MOD", number, pid
elif "MPA" in pid:
ERROR: Job failed: exit code 1