Simplify Alstec.MSPU.get_interface_status_ex.

6 jobs from fix/interface_status_ex(2) in 1 minute and 1 second (queued for 1 second)
Status Job ID Name Coverage
  Lint
passed #42773
docker
flake8

00:00:23

passed #42777
docker
futurize

00:00:18

passed #42776
docker
pylint

00:00:20

failed #42775
docker allowed to fail
radon

00:00:18

failed #42774
docker allowed to fail
yapf

00:00:22

 
  Test
failed #42778
docker allowed to fail
test_noc

00:00:37

21.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 21%
Coverage Statements : 20260
Coverage Missing : 15927
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 366 matching files
./var/report: found 2 matching files
Uploading artifacts to coordinator... ok id=42778 responseStatus=201 Created token=nyrsZF9d
ERROR: Job failed: exit code 2
failed
yapf Lint
             ostatus = i.get("oper_status")
if iface.oper_status != ostatus and ostatus is not None:
- self.logger.info("[%s] set oper status to %s",
- i["interface"], ostatus)
+ self.logger.info("[%s] set oper status to %s", i["interface"], ostatus)
iface.set_oper_status(ostatus)
if bulk:
self.logger.info("Commiting changes to database")
ERROR: Job failed: exit code 1
failed
radon Lint
sa/profiles/Qtech/BFC_PBIC_S/get_interface_status_ex.py
sa/profiles/Raisecom/RCIOS/get_interface_status_ex.py
sa/profiles/Rotek/RTBS/get_interface_status_ex.py
sa/profiles/Rotek/RTBSv1/get_interface_status_ex.py
sa/profiles/Zyxel/MSAN/__init__.py
sa/profiles/Zyxel/MSAN/get_interface_status_ex.py
services/discovery/jobs/periodic/interfacestatus.py'
++ let x+=0
ERROR: Job failed: exit code 1