Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Development (http://www.linux-archive.org/archlinux-development/)
-   -   Use description property for MDRaidArrayDevice model (http://www.linux-archive.org/archlinux-development/314607-use-description-property-mdraidarraydevice-model.html)

Hans de Goede 01-25-2010 07:24 AM

Use description property for MDRaidArrayDevice model
 
The description property properly differentiaties between regular mdraid
and biosraid sets, using this for model makes for a more informational
display in cleardisks_gui.
---
storage/devices.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index c2f7db7..800720a 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2825,7 +2825,7 @@ class MDRaidArrayDevice(StorageDevice):

@property
def model(self):
- return "RAID%d Array" % self.level
+ return self.description

@property
def partitionable(self):
--
1.6.5.2

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

Martin Sivak 01-25-2010 12:00 PM

Use description property for MDRaidArrayDevice model
 
Looks OK. Martin

----- "Hans de Goede" <hdegoede@redhat.com> wrote:

> The description property properly differentiaties between regular
> mdraid
> and biosraid sets, using this for model makes for a more
> informational
> display in cleardisks_gui.
> ---
> storage/devices.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/storage/devices.py b/storage/devices.py
> index c2f7db7..800720a 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -2825,7 +2825,7 @@ class MDRaidArrayDevice(StorageDevice):
>
> @property
> def model(self):
> - return "RAID%d Array" % self.level
> + return self.description
>
> @property
> def partitionable(self):
> --
> 1.6.5.2
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

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


All times are GMT. The time now is 09:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.