Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12991 from ammendonca/MIQ-MW-FIX-ACTIONS-DEPLOYME…
…NTS-LIST

Enable deployment actions in server deployments list view
(cherry picked from commit 4c8f892)

https://bugzilla.redhat.com/show_bug.cgi?id=1411983
  • Loading branch information
Dan Clarizio authored and simaishi committed Jan 10, 2017
1 parent 156186e commit 1d0f054
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/middleware_server_controller.rb
Expand Up @@ -283,7 +283,10 @@ def trigger_mw_operation(operation, mw_server, params = nil)
end

op = mw_manager.public_method operation
if params

if mw_server.instance_of? MiddlewareDeployment
op.call(path, mw_server.name)
elsif params
op.call(path, params)
else
op.call(path)
Expand Down

0 comments on commit 1d0f054

Please sign in to comment.