Alstec.24xx.get_metrics fix trace when no controller module.

6 jobs for patch-avs-fix-alstec-metrics in 1 minute and 57 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Lint
passed #42979
docker
flake8

00:00:27

passed #42983
docker
futurize

00:00:26

passed #42982
docker
pylint

00:00:14

failed #42981
docker allowed to fail
radon

00:00:16

failed #42980
docker allowed to fail
yapf

00:00:24

 
  Test
failed #42984
docker allowed to fail
test_noc

00:01:29

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

Uploading artifacts to coordinator... ok
id=42984 responseStatus=201 Created token=Dr5NjeRj
ERROR: Job failed: exit code 2
failed
yapf Lint
-                                    multi=True)
+ self.set_metric(
+ id=("Environment | Sensor Status", None),
+ metric="Environment | Sensor Status",
+ path=["", "", "", "State_Batteries"],
+ value=bool("On" in v),
+ multi=True
+ )
ERROR: Job failed: exit code 1
failed
radon Lint
$ x=0
++ x=0
++ 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'
$ 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/Alstec/24xx/get_metrics.py ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B sa/profiles/Alstec/24xx/get_metrics.py
++ let x+=0
ERROR: Job failed: exit code 1