[PATCH 04/11] MDRaidArrayDevice.totalDevices is a read only property so don't write it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



MDRaidArrayDevice.totalDevices is a read only property so don't write it,
set MDRaidArrayDevice._totalDevices instead.

Courtesy of pylint.
---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 37ec420..d780ff4 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2269,7 +2269,7 @@ class MDRaidArrayDevice(StorageDevice):
                 spares = self.totalDevices - self.memberDevices
             else:
                 spares = self.memberDevices
-                self.totalDevices = self.memberDevices
+                self._totalDevices = self.memberDevices
         return spares
 
     def _setSpares(self, spares):
-- 
1.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux