FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 01-25-2010, 07:24 AM
Hans de Goede
 
Default 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
 
Old 01-25-2010, 12:00 PM
Martin Sivak
 
Default 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
 

Thread Tools




All times are GMT. The time now is 04:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org