From 055dbebd953ed38bb584397f8b07f7ef0245acbc Mon Sep 17 00:00:00 2001 From: Oleg Barenboim Date: Fri, 5 Jan 2018 09:23:15 -0500 Subject: [PATCH] Merge pull request #16710 from Imaanpreet/validate_exit_maint_mode Fixed: ESxi host does not exit maintenance mode. (cherry picked from commit 7a37a8acbfd4d0620a788bb4200c143f97033cfa) https://bugzilla.redhat.com/show_bug.cgi?id=1568042 --- app/models/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/host.rb b/app/models/host.rb index 97742a498242..dfea71765ff5 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -422,7 +422,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