Project

General

Profile

« Previous | Next » 

Revision 617ee75f

Added by Amos Benari almost 11 years ago

  • ID 617ee75f8c0f8d239564f3fd48d92a2d772eeb8b
  • Parent d30ac557

fixes #2656 error connecting to vsphere after upgrade to ruby 1.9.3

View differences:

app/helpers/compute_resources_helper.rb
def password_placeholder(obj)
obj.id ? "********" : ""
end
def list_datacenters compute
return [] unless compute.uuid || controller.action_name == 'test_connection'
compute.datacenters
rescue Foreman::FingerprintException => e
compute.errors[:pubkey_hash] = e
[]
rescue
[]
end
end

Also available in: Unified diff