Skip to content

Commit

Permalink
Do not store cockpit popups in session
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jun 11, 2018
1 parent b136154 commit 1cfbf79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/container_node_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def textual_group_list
def launch_cockpit
node = identify_record(params[:id], ContainerNode)

disable_client_cache

if node.kubernetes_hostname
javascript_open_window(node.cockpit_url.to_s)
else
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/vm_remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def console
def launch_cockpit
vm = identify_record(params[:id], VmOrTemplate)

disable_client_cache

if vm.supports_launch_cockpit?
javascript_open_window(vm.cockpit_url.to_s)
else
Expand Down

0 comments on commit 1cfbf79

Please sign in to comment.