diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2017-12-14 08:43:15 +0100 |
---|---|---|
committer | Neil Williams <neil.williams@linaro.org> | 2017-12-18 11:41:51 +0000 |
commit | 70cb792c77038e6de0897e122477d7c0413253b0 (patch) | |
tree | 6e5d8de67c7d611226edad343f3e0431177280b9 /lava_server/management | |
parent | 2d427a84f649e46cd4bd675b1ab87c530737dae0 (diff) |
LAVA-963 - Support python3 -Wall unit tests
Support running the unit tests with python3 without error or fails.
Update various code bits to support both versions of python.
Change-Id: Ia62845dd7b480731526f3b54867701aa95dcdba8
Diffstat (limited to 'lava_server/management')
-rw-r--r-- | lava_server/management/commands/lava-master.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lava_server/management/commands/lava-master.py b/lava_server/management/commands/lava-master.py index 94ffa0dc7..ae9e7ba5e 100644 --- a/lava_server/management/commands/lava-master.py +++ b/lava_server/management/commands/lava-master.py @@ -594,7 +594,7 @@ class Command(LAVADaemonCommand): # Check dispatchers status now = time.time() - for hostname, dispatcher in self.dispatchers.iteritems(): + for hostname, dispatcher in self.dispatchers.items(): if dispatcher.online and now - dispatcher.last_msg > DISPATCHER_TIMEOUT: if hostname == "lava-logs": self.logger.error("[STATE] lava-logs goes OFFLINE") |