'Get objects of a type
@param str type object type
@return list objects'

def _list_objects(self, type):

    objects = []
    output = run_cmd(('cobbler    %s    list' % type))
    lines = output.split('\n')
    for line in lines:
        if (line.strip() != ''):
            objects.append(line.strip())
    return objects
