Revision d0d7d7cf lib/storage/drbd.py

b/lib/storage/drbd.py
929 929
    if self.minor is None and not self.Attach():
930 930
      logging.info("drbd%d: not attached during Shutdown()", self._aminor)
931 931
      return
932
    minor = self.minor
933
    self.minor = None
934
    self.dev_path = None
935
    DRBD8.ShutdownAll(minor)
932

  
933
    try:
934
      DRBD8.ShutdownAll(self.minor)
935
    finally:
936
      self.minor = None
937
      self.dev_path = None
936 938

  
937 939
  def Remove(self):
938 940
    """Stub remove for DRBD devices.

Also available in: Unified diff