~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/health.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2013-08-01 20:59:27 UTC
  • mfrom: (325.1.9 bundle-search)
  • Revision ID: tarmac-20130801205927-lcbxxxb2bba92akt
[r=abentley][bug=][author=bac] Provide support for bundles in searching. The display of search results in the web app still only shows charms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    status = FAIL
32
32
    try:
33
33
        results = request.index_client.search(terms='')
34
 
        if results['charm_total'] > 0:
35
 
            remark = '{0} matches found'.format(results['charm_total'])
 
34
        if results['result_total'] > 0:
 
35
            remark = '{0} matches found'.format(results['result_total'])
36
36
            status = PASS
37
37
        else:
38
38
            remark = 'There are no matches. Is ingest running?'