Skip to content

Commit

Permalink
Remove the policy checking for request_host_vmotion_enabled.
Browse files Browse the repository at this point in the history
There are events request_host_enable_vmotion and request_host_disable_vmotion defined in db/fixtures/miq_event_definitions.csv.
But request_host_vmotion_enabled is not a defined event.
  • Loading branch information
lfu committed Mar 21, 2017
1 parent 1c97ccd commit 62d0ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def disable_vmotion
def vmotion_enabled?
msg = validate_vmotion_enabled?
if msg[:available] && respond_to?(:vim_vmotion_enabled?)
check_policy_prevent("request_host_vmotion_enabled", "vim_vmotion_enabled?")
vim_vmotion_enabled?
else
_log.warn("Cannot check if vmotion is enabled because <#{msg[:message]}>")
end
Expand Down

0 comments on commit 62d0ffe

Please sign in to comment.