def get_all_services(self):
    output = self.get_raw_output(NeadmServiceWrapper._service_list_cmd)
    result = NeadmServiceList()
    if self.exit_code:
        result.exit_code = self.exit_code
        result.output = output
        return result
    output_array = output.split('\n')
    for line in output_array:
        if NeadmServiceWrapper._service_list_header.match(line):
            continue
        params = line.split()
        if (len(params) < 4):
            continue
        service_record = {}
        for name in NeadmServiceWrapper._service_list_names:
            service_record[name] = params[NeadmServiceWrapper._service_list_names.index(name)]
        db_record = self.db.find(sid=service_record['sid'], service_name=service_record['name'])
        if (len(db_record) == 1):
            service_record['unit_id'] = db_record[0]['unit_id']
        else:
            service_record['unit_id'] = ''
        result.append(service_record)
    return result
def get_all_services(self):
    output = self.get_raw_output(NeadmServiceWrapper._service_list_cmd)
    result = NeadmServiceList()
    if self.exit_code:
        result.exit_code = self.exit_code
        result.output = output
        return result
    output_array = output.split('\n')
    for line in output_array:
        if NeadmServiceWrapper._service_list_header.match(line):
            continue
        params = line.split()
        if (len(params) < 4):
            continue
        service_record = {}
        for name in NeadmServiceWrapper._service_list_names:
            service_record[name] = params[NeadmServiceWrapper._service_list_names.index(name)]
        db_record = self.db.find(sid=service_record['sid'], service_name=service_record['name'])
        if (len(db_record) == 1):
            service_record['unit_id'] = db_record[0]['unit_id']
        else:
            service_record['unit_id'] = 
        result.append(service_record)
    return result