Skip to content

Commit

Permalink
Use default host_verify_credentials
Browse files Browse the repository at this point in the history
The default verify_credentials used to be ws, but is now ssh.
This code wants the new default behavior.

Deleting this copy/paste code
  • Loading branch information
kbrock committed Mar 7, 2023
1 parent 1ed50e8 commit cfed78f
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 cfed78f

Please sign in to comment.