Skip to content

Commit

Permalink
Fixed: ESxi host does not exit maintenance mode.
Browse files Browse the repository at this point in the history
TODO: Need to write test cases for this
  • Loading branch information
Imaanpreet committed Dec 21, 2017
1 parent faeac8b commit 08a073b
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 @@ -417,7 +417,7 @@ def enter_maint_mode
end

def exit_maint_mode
msg = validate_enter_maint_mode
msg = validate_exit_maint_mode
if msg[:available] && respond_to?(:vim_exit_maintenance_mode)
check_policy_prevent("request_host_exit_maintenance_mode", "vim_exit_maintenance_mode")
else
Expand Down

0 comments on commit 08a073b

Please sign in to comment.