Skip to content

Commit

Permalink
stomped over variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Feb 15, 2022
1 parent dfdda5e commit 57cf3f2
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 57cf3f2

Please sign in to comment.