Skip to content

Commit

Permalink
Merge pull request #634 from kbrock/host_validation
Browse files Browse the repository at this point in the history
Use default host_verify_credentials
  • Loading branch information
agrare authored Mar 7, 2023
2 parents e243534 + cfed78f commit 1d12179
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/models/manageiq/providers/ovirt/infra_manager/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d12179

Please sign in to comment.