Skip to content

Commit

Permalink
Minor bugfix when a error apears updating a VM info
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 27, 2015
1 parent 845e624 commit 1b22c62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IM/VirtualMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,10 @@ def update_status(self, auth):
state = new_vm.state
updated = True

with self._lock:
self.last_update = now
with self._lock:
self.last_update = now
else:
VirtualMachine.logger.error("Error updating VM status: %s" % new_vm)
except:
VirtualMachine.logger.exception("Error updating VM status.")
updated = False
Expand Down

0 comments on commit 1b22c62

Please sign in to comment.