Commit 717a6607 by Bence Dányi

one: dump template status too

parent bba9a89a
......@@ -368,7 +368,12 @@ def vm_show(request, iid):
def vm_ajax_instance_status(request, iid):
inst = get_object_or_404(Instance, id=iid, owner=request.user)
inst.update_state()
return HttpResponse(json.dumps({'booting': not inst.active_since, 'state': inst.state}))
return HttpResponse(json.dumps({
'booting': not inst.active_since,
'state': inst.state,
'template': {
'state': inst.template.state
}}))
@login_required
def vm_ajax_rename(request, iid):
......
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 sign in to comment