summaryrefslogtreecommitdiff
path: root/lorrycontroller
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-08 14:46:38 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-08 14:46:38 +0100
commit4cff3a3ec8b9bf88f31449f2a52f9c4de2d7d77e (patch)
treefce8611b19ac9b2804f6dfb9ac30c0e7c03b12e3 /lorrycontroller
parent6ad3ba51287b1578d8882f3645dfa75c0a7d256f (diff)
downloadlorry-controller-4cff3a3ec8b9bf88f31449f2a52f9c4de2d7d77e.tar.gz
Cope with lorries changing uuid and being destroyed in the same run
Diffstat (limited to 'lorrycontroller')
-rw-r--r--lorrycontroller/workingstate.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lorrycontroller/workingstate.py b/lorrycontroller/workingstate.py
index f6f8128..1812ad5 100644
--- a/lorrycontroller/workingstate.py
+++ b/lorrycontroller/workingstate.py
@@ -65,9 +65,6 @@ class WorkingStateManager(object):
self.lorry_state_file)
with open(self.lorry_state_file, "r") as fh:
self.lorry_state = json.load(fh)
- for lorry_name, dct in self.lorry_state.iteritems():
- if type(dct['conf']) == dict:
- dct['conf'] = dct['uuid']
else:
self.lorry_state = dict()