def _disconnect_iscsi(self): try: sid = self.getSessionInfo().id except OSError as e: if e.errno == errno.ENOENT: log.debug("not connected") return raise iscsi.disconnectiScsiSession(sid)
def disconnect(self): self.log.info("disconnecting") try: sid = self.getSessionInfo().id except OSError as e: if e.errno == errno.ENOENT: self.log.debug("not connected") return raise iscsi.disconnectiScsiSession(sid)
def disconnect(self): self.log.info("disconnecting") try: sid = self.getSessionInfo().id except OSError as e: if e.errno == errno.ENOENT: self.log.debug("not connected") return raise iscsi.disconnectiScsiSession(sid)