Project

General

Profile

« Previous | Next » 

Revision 26716028

Added by Kavita Gaikwad about 5 years ago

Fixes #4179 - handled ephemeral public IP

With this commit, it will allow user to create
ephemeral public IP as external_ip field removed from APIs

View differences:

app/models/concerns/orchestration/ssh_provision.rb
else
raise ::Foreman::Exception.new(N_('Unable to find proper authentication method'))
end
self.client = Foreman::Provision::SSH.new provision_host, image.username, { :template => template_file.path, :uuid => uuid }.merge(credentials)
self.client = Foreman::Provision::SSH.new provision_host, image.try(:username), { :template => template_file.path, :uuid => uuid }.merge(credentials)
rescue => e
failure _("Failed to login via SSH to %{name}: %{e}") % { :name => name, :e => e }, e
end

Also available in: Unified diff