Commit ed66373f authored by Sridutt Bhalachandra's avatar Sridutt Bhalachandra

Added event handle for power policy information from c downstream api

parent 874a6a4d
......@@ -45,6 +45,11 @@ class Daemon(object):
if uuid in self.application_manager.applications:
app = self.application_manager.applications[uuid]
app.update_progress(msg)
elif event == 'power_policy':
uuid = msg['uuid']
if uuid in self.application_manager.applications:
app = self.application_manager.applications[uuid]
# TODO: Invoke appropriate power policy
elif event == 'exit':
self.application_manager.delete(msg['uuid'])
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment