do i want to...

This commit is contained in:
brent s
2019-11-08 16:49:41 -05:00
parent 083c966cad
commit 7fc416f17c
6 changed files with 153 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ class Member(object):
class Array(object):
def __init__(self, array_xml, homehost, devpath = None):
self.xml = array_xml
self.id = array_xml.attrib['id']
self.id = self.xml.attrib['id']
self.level = int(self.xml.attrib['level'])
if self.level not in aif.constants.MDADM_SUPPORTED_LEVELS:
raise ValueError('RAID level must be one of: {0}'.format(', '.join([str(i)