# File lib/cimi/model/machine_configuration.rb, line 38 def self.find(id, context) profiles = [] if id == :all profiles = context.driver.hardware_profiles(context.credentials) profiles.map { |profile| from_hardware_profile(profile, context) }.compact else profile = context.driver.hardware_profile(context.credentials, id) from_hardware_profile(profile, context) end end