[blivet:master 5/8] Generalize the error message for the array level

mulhern amulhern at redhat.com
Fri Jul 25 16:39:24 UTC 2014


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devices.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index 3d57df9..cb29931 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3840,7 +3840,7 @@ class MDRaidArrayDevice(ContainerDevice):
             removing one of its devices is a bad idea.
         """
         if not self.level.has_redundancy and self.exists and member.format.exists:
-            raise errors.DeviceError("cannot remove members from existing raid0")
+            raise errors.DeviceError("cannot remove members from existing %s array" % self.level)
 
         super(MDRaidArrayDevice, self)._removeParent(member)
         self.memberDevices -= 1
-- 
1.9.3



More information about the anaconda-patches mailing list