1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #3900: Check is oned is reachable when requesting index.html

This commit is contained in:
Daniel Molina 2015-08-28 12:28:43 +02:00
parent 32b5434540
commit 25f480f916

View File

@ -11,6 +11,7 @@
<% end %>
<% view = $views_config.view(session[:user], session[:user_gname], session[:default_view]) %>
<% halt 500, "OpenNebula is unreachable" if view.nil? %>
<script type="text/javascript">
var csrftoken = '<%= session[:csrftoken] %>';
var view = JSON.parse('<%= view.to_json %>')