Skip to content

Commit

Permalink
Merge pull request #581 from cglewis/main
Browse files Browse the repository at this point in the history
stomped over variable
  • Loading branch information
cglewis authored Feb 15, 2022
2 parents 0c065c7 + 57cf3f2 commit f440322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PiBuoyV2/services/sense/sense_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ def check_version(self, timestamp):
healthy = True
for container in containers:
try:
container = self.docker.containers.get("pibuoyv2_"+container+"_1")
if container.status != 'running':
cnt = self.docker.containers.get("pibuoyv2_"+container+"_1")
if cnt.status != 'running':
healthy = False
self.sensor_data["version_"+container].append(
[self.get_container_version(container), timestamp])
[self.get_container_version(cnt), timestamp])
except Exception as e:
self.sensor_data["version_"+container].append([str(e), timestamp])
healthy = False
Expand Down

0 comments on commit f440322

Please sign in to comment.