# File lib/deltacloud/drivers/ec2/ec2_driver.rb, line 202
  def generate_instance(ec2, id, backup)
    begin
      this_instance = ec2.describe_instances( :instance_id => id ).reservationSet.item.first.instancesSet.item.first
      convert_instance(this_instance, this_instance.ownerId)
    rescue Exception => e
      puts "WARNING: ignored error during instance refresh: #{e.message}"
      # at this point, the action has succeeded but our follow-up
      # "describe_instances" failed for some reason.  Create a simple Instance
      # object with only the ID and new state in place
      state = convert_state(backup.instancesSet.item.first.currentState.name)
      Instance.new( {
        :id => id,
        :state => state,
        :actions => instance_actions_for( state ),
      } )
    end
  end