def METHOD_NAME(self, err, obj_type, query=None):
    """Retrieve the created objects by parsing the stderr output"""
    pattern = re.compile(r'^%s:(?P<idstring>\d+)$' % obj_type)
    objs = []
    for line in reversed(err.split('\n')):
        match = re.match(pattern, line)
        if match:
            ids = match.group('idstring').split(',')
            for obj_id in ids:
                obj = self.assert_object(obj_type,
                                         int(obj_id), query=query)
                objs.append(obj)
    return objs