From cfed78ffc58279125573248c5527ff5a2febb0c4 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Tue, 7 Mar 2023 12:32:56 -0500 Subject: [PATCH] Use default host_verify_credentials The default verify_credentials used to be ws, but is now ssh. This code wants the new default behavior. Deleting this copy/paste code --- .../manageiq/providers/ovirt/infra_manager/host.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/models/manageiq/providers/ovirt/infra_manager/host.rb b/app/models/manageiq/providers/ovirt/infra_manager/host.rb index 2c4e4d68..f1ba2680 100644 --- a/app/models/manageiq/providers/ovirt/infra_manager/host.rb +++ b/app/models/manageiq/providers/ovirt/infra_manager/host.rb @@ -3,20 +3,6 @@ def provider_object(connection = nil) ManageIQ::Providers::Ovirt::InfraManager::OvirtServices::V4.new(:ems => ext_management_system).get_host_proxy(self, connection) end - def verify_credentials(auth_type = nil, options = {}) - raise MiqException::MiqHostError, "No credentials defined" if missing_credentials?(auth_type) - if auth_type.to_s != 'ipmi' && os_image_name !~ /linux_*/ - raise MiqException::MiqHostError, "Logon to platform [#{os_image_name}] not supported" - end - case auth_type.to_s - when 'ipmi' then verify_credentials_with_ipmi(auth_type) - else - verify_credentials_with_ssh(auth_type, options) - end - - true - end - supports :capture supports :quick_stats do unless ext_management_system.supports?(:quick_stats)