def get_iso(name, zone_name=nil)
      zone = zone_name ? get_zone(zone_name) : get_default_zone

      params = {
          'command' => 'listIsos',
          'isoFilter' => 'executable',
      }
      params['zoneid'] = zone['id'] if zone

      json = send_request(params)
      iso = json['iso']
      return nil unless iso

      iso.each { |i|
        if name.is_uuid? then
          return i if i['id'] == name
        else
          return i if i['name'] == name
        end
      }
      nil
    end
def get_iso(name, zone_name=nil)
      zone = zone_name ? get_zone(zone_name) : get_default_zone

      params = {
          'command' => 'listIsos',
          'isoFilter' => 'executable',
      }
      params['zoneid'] = zone['id'] if zone

      json = send_request(params)
      iso = json['iso']
      return nil unless iso

      iso.each { |i|
        if name.is_uuid? then
          return i if i['id'] == name
        else
          return i if i['name'] == name
        end
      }
      nil
    end
Finds the iso with the specified name.