summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py
index 13d85b8a0..f72d39d3f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1867,7 +1867,7 @@ class MDRaidArrayDevice(StorageDevice):
def totalDevices(self):
""" Total number of devices in the array, including spares. """
count = len(self.parents)
- if self.exists:
+ if not self.exists:
count = self._totalDevices
return count