fix formatting an unformatted, pre-existing raid
This commit is contained in:
parent
26e18679de
commit
293cb187a6
|
@ -528,7 +528,7 @@ class _Formattable(ABC):
|
||||||
if action['type'] == 'format' and action['volume'] == self.id:
|
if action['type'] == 'format' and action['volume'] == self.id:
|
||||||
return action['fstype']
|
return action['fstype']
|
||||||
for action in self._m._orig_config:
|
for action in self._m._orig_config:
|
||||||
if action['id'] == self.id and action['flag'] == 'swap':
|
if action['id'] == self.id and action.get('flag') == 'swap':
|
||||||
return 'swap'
|
return 'swap'
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue