Skip to content

Commit

Permalink
RAID attributes: include "Active: Yes/No"
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Aug 21, 2018
1 parent ccec142 commit 15546c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/y2partitioner/widgets/md_description.rb
Expand Up @@ -57,12 +57,22 @@ def raid_description
# @return [Array<String>]
def raid_attributes
[
raid_active,
raid_type,
raid_chunk_size,
raid_parity
]
end

# Information about MD RAID being (in)active
#
# @return [String]
def raid_active
# TRANSLATORS: RAID being active (assembled), where %s is replaced by
# 'Yes' when the device is active or by 'No' otherwise
format(_("Active: %s"), blk_device.active? ? _("Yes") : _("No"))
end

# Information about MD RAID type
#
# @return [String]
Expand Down

0 comments on commit 15546c2

Please sign in to comment.