'Wrapper around find_obj to set datacenter context'

def find_obj(self, content, types, name, confine_to_datacenter=True):

    result = find_obj(content, types, name)
    if (result and confine_to_datacenter):
        if (self.get_parent_datacenter(result).name != self.dc_name):
            result = None
            objects = self.get_all_objs(content, types, confine_to_datacenter=True)
            for obj in objects:
                if ((name is None) or (obj.name == name)):
                    return obj
    return result
