def METHOD_NAME(self, vdi_uuid):
    if not self.sr.attached:
        raise xs_errors.XenError('SRUnavailable')
    self.uuid = vdi_uuid
    self.location = vdi_uuid
    self.managed = False
    try:
        vdi_ref = self.sr.session.xenapi.VDI.get_by_uuid(vdi_uuid)
        self.managed = self.sr.session.xenapi.VDI.get_managed(vdi_ref)
        self.sm_config = self.sr.session.xenapi.VDI.get_sm_config(vdi_ref)
        self.path = self.sr.mpathmodule.path(self.sm_config['SCSIid'])
    except:
        pass
    if self.sr.cmd == "vdi_introduce":
        self.managed = True