'Return list of ids of bugs from a search.'

def get_bug_ids(self, **kwargs):

    kwargs.update({'include_fields': ['id']})
    log.debug('Searching    bugs    with    kwargs:    %s', kwargs)
    bugs = self.Bug.search(kwargs)
    return [bug['id'] for bug in bugs.get('bugs', [])]
