From 57cf3f2a9b9f51d6a841861ac185b6109f22ff87 Mon Sep 17 00:00:00 2001 From: cglewis Date: Mon, 14 Feb 2022 17:18:26 -0800 Subject: [PATCH] stomped over variable --- PiBuoyV2/services/sense/sense_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PiBuoyV2/services/sense/sense_app.py b/PiBuoyV2/services/sense/sense_app.py index 1981e466..a653d439 100644 --- a/PiBuoyV2/services/sense/sense_app.py +++ b/PiBuoyV2/services/sense/sense_app.py @@ -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