Fix Huawei.MA5600T.get_interfaces script

6 jobs for ma5600_snmp in 1 minute and 49 seconds (queued for 1 second)
Status Job ID Name Coverage
  Lint
passed #43318
docker
flake8

00:00:14

passed #43322
docker
futurize

00:00:19

passed #43321
docker
pylint

00:00:25

failed #43320
docker allowed to fail
radon

00:00:21

failed #43319
docker allowed to fail
yapf

00:00:22

 
  Test
failed #43323
docker allowed to fail
test_noc

00:01:22

21.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 21%
Coverage Statements : 20679
Coverage Missing : 16239
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 378 matching files
./var/report: found 2 matching files

Uploading artifacts to coordinator... ok
id=43323 responseStatus=201 Created token=Hm6Vv1e8
ERROR: Job failed: exit code 2
failed
yapf Lint
             for vlan in self.scripts.get_vlans():
- for match in self.rx_vlan2.finditer(
- self.cli("display vlan %s" % vlan["vlan_id"])
- ):
+ for match in self.rx_vlan2.finditer(self.cli("display vlan %s" % vlan["vlan_id"])):
ifname = match.group("ifname").replace(" ", "")
for i in interfaces:
if ifname == i["name"]:
ERROR: Job failed: exit code 1
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/Huawei/MA5600T/get_interfaces.py ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B sa/profiles/Huawei/MA5600T/get_interfaces.py
ERROR:xenon:block "sa/profiles/Huawei/MA5600T/get_interfaces.py:127 execute" has a rank of F
ERROR:xenon:block "sa/profiles/Huawei/MA5600T/get_interfaces.py:15 Script" has a rank of D
ERROR:xenon:average complexity is ranked D
ERROR:xenon:module 'sa/profiles/Huawei/MA5600T/get_interfaces.py' has a rank of D
ERROR: Job failed: exit code 1