diff options
Diffstat (limited to 'lorrycontroller/workingstate.py')
-rw-r--r-- | lorrycontroller/workingstate.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lorrycontroller/workingstate.py b/lorrycontroller/workingstate.py index 1ef2e9b..68d2ef9 100644 --- a/lorrycontroller/workingstate.py +++ b/lorrycontroller/workingstate.py @@ -64,6 +64,9 @@ class WorkingStateManager(object): logging.debug("Loading state file: %s" % 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() |