Skip to content

Commit

Permalink
Post object_status now send response with status: 0
Browse files Browse the repository at this point in the history
this will avoid following warning message because on None response
  post object status failed: 'NoneType' object has no attribute 'get'
  • Loading branch information
cgalibern committed Jan 11, 2021
1 parent f5daf1c commit c3ec562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opensvc/daemon/handlers/object/status/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ def action(self, nodename, thr=None, **kwargs):
options.data["monitor"] = thr.get_service_monitor(options.path)
thr.daemon_status_data._set_lk(["monitor", "nodes", Env.nodename, "services", "status", options.path], options.data)
shared.wake_monitor("%s status change" % options.path, immediate=True)
return {"status": 0, "info": "instance status updated"}

0 comments on commit c3ec562

Please sign in to comment.