class Chef::Provider::LoadBalancer

Public Instance Methods

get_machine_spec!(machine_name) click to toggle source

We override this so we can specify a machine name as `i-123456` This is totally a hack until we move away from base resources

# File lib/chef/provisioning/aws_driver/driver.rb, line 71
def get_machine_spec!(machine_name)
  if machine_name =~ /^i-[0-9a-f]+/
    Struct.new(:name, :reference).new(machine_name, "instance_id" => machine_name)
  else
    Chef::Log.debug "Getting machine spec for #{machine_name}"
    Provisioning.chef_managed_entry_store(new_resource.chef_server).get!(:machine, machine_name)
  end
end