def site_list(show_incomplete = true)
      page = 1
      not_done = true
      count = 0
      sites = []
      while not_done
        current_path = '/api/v1/sites?page=' << page.to_s
        current_path <<= '&show_incomplete=true' if show_incomplete
        res = @conn.get(current_path)
        if res['sites'] == []
          not_done = false
        elsif !res['message'].nil?
          return { 'message' => res['message'] }
        elsif page == 1
          count = res['count']
          sites = res['sites']
        else
          res['sites'].each do |site|
            sites << site
          end
        end
        page += 1
      end
      { 'count' => count, 'sites' => sites }
    end
def site_list(show_incomplete = true)
      page = 1
      not_done = true
      count = 0
      sites = []
      while not_done
        current_path = '/api/v1/sites?page=' << page.to_s
        current_path <<= '&show_incomplete=true' if show_incomplete
        res = @conn.get(current_path)
        if res['sites'] == []
          not_done = false
        elsif !res['message'].nil?
          return { 'message' => res['message'] }
        elsif page == 1
          count = res['count']
          sites = res['sites']
        else
          res['sites'].each do |site|
            sites << site
          end
        end
        page += 1
      end
      { 'count' => count, 'sites' => sites }
    end
Gets the complete list of sites
 Makes multiple requests to the factory to get all the sites on the factory
 @param [Boolean] show_incomplete whether to include incomplete sites in
   the list. The default differs from UI/SF to maintain backward compatibility.
 @return [Hash{'count' => Integer, 'sites' => Hash}]