Correctly process node.updated event on controller

This commit is contained in:
Julien Duponchelle
2016-05-18 16:12:13 +02:00
parent 694e1a2e68
commit fa0af7f4a2
9 changed files with 118 additions and 33 deletions

View File

@ -196,7 +196,7 @@ class Compute:
msg = json.loads(response.data)
action = msg.pop("action")
event = msg.pop("event")
self._controller.notification.emit(action, event, compute_id=self.id, **msg)
self._controller.notification.dispatch(action, event, compute_id=self.id)
def _getUrl(self, path):
return "{}://{}:{}/v2/compute{}".format(self._protocol, self._host, self._port, path)