diff --git a/app/models/host.rb b/app/models/host.rb index b1fcd08513e..997919ac217 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -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