Skip to content

Commit f440322

Browse files
authored
Merge pull request #581 from cglewis/main
stomped over variable
2 parents 0c065c7 + 57cf3f2 commit f440322

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PiBuoyV2/services/sense/sense_app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ def check_version(self, timestamp):
231231
healthy = True
232232
for container in containers:
233233
try:
234-
container = self.docker.containers.get("pibuoyv2_"+container+"_1")
235-
if container.status != 'running':
234+
cnt = self.docker.containers.get("pibuoyv2_"+container+"_1")
235+
if cnt.status != 'running':
236236
healthy = False
237237
self.sensor_data["version_"+container].append(
238-
[self.get_container_version(container), timestamp])
238+
[self.get_container_version(cnt), timestamp])
239239
except Exception as e:
240240
self.sensor_data["version_"+container].append([str(e), timestamp])
241241
healthy = False

0 commit comments

Comments
 (0)