Fix Eltex.MES.get_interfaces script

6 jobs from eltex_description in 1 minute and 49 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Lint
passed #40519
docker
flake8

00:00:20

passed #40523
docker
futurize

00:00:17

passed #40522
docker
pylint

00:00:26

failed #40521
docker allowed to fail
radon

00:00:11

failed #40520
docker allowed to fail
yapf

00:00:16

 
  Test
failed #40524
docker allowed to fail
test_noc

00:01:22

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=40524 responseStatus=201 Created token=czyV1oQ9
ERROR: Job failed: exit code 2
failed
yapf Lint
-                    version__regex=r"4\.0\.[4-7]$"
- )
- ):
+ if (self.match_version(version__regex=r"[12]\.[15]\.4[4-9]") or
+ self.match_version(version__regex=r"4\.0\.[4-7]$")):
v = self.cli("show interface %s" % name)
time.sleep(0.5)
for match in self.rx_sh_int.finditer(v):
ERROR: Job failed: exit code 1
failed
radon Lint
++ echo '$ 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/Eltex/MES/get_interfaces.py ']'
++ for i in "${FLIST}"
$ x=0
$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi
++ xenon --max-absolute B --max-modules B --max-average B sa/profiles/Eltex/MES/get_interfaces.py
ERROR:xenon:block "sa/profiles/Eltex/MES/get_interfaces.py:244 execute_cli" has a rank of F
ERROR:xenon:block "sa/profiles/Eltex/MES/get_interfaces.py:146 execute_snmp" has a rank of C
ERROR: Job failed: exit code 1